diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-14 20:01:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-14 20:01:50 +0000 |
commit | b332156c1e5efd3714b8c396ac27ee75e02f58c9 (patch) | |
tree | 6c99eec6f89a32471a2e744d758ded57cf520661 | |
parent | ef530c24c13c1bc4f4b48b7a52510c3ced6fb6bf (diff) | |
download | bcm5719-llvm-b332156c1e5efd3714b8c396ac27ee75e02f58c9.tar.gz bcm5719-llvm-b332156c1e5efd3714b8c396ac27ee75e02f58c9.zip |
Add CallGraph::getOrInsertFunction, to allow clients to update the callgraph
when they change the program
llvm-svn: 25316
-rw-r--r-- | llvm/include/llvm/Analysis/CallGraph.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/CallGraph.h b/llvm/include/llvm/Analysis/CallGraph.h index e477be34f8e..734306015c0 100644 --- a/llvm/include/llvm/Analysis/CallGraph.h +++ b/llvm/include/llvm/Analysis/CallGraph.h @@ -132,6 +132,11 @@ public: /// old code over). void changeFunction(Function *OldF, Function *NewF); + /// getOrInsertFunction - This method is identical to calling operator[], but + /// it will insert a new CallGraphNode for the specified function if one does + /// not already exist. + CallGraphNode *getOrInsertFunction(const Function *F); + //===--------------------------------------------------------------------- // Pass infrastructure interface glue code... // |