summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-14 20:01:50 +0000
committerChris Lattner <sabre@nondot.org>2006-01-14 20:01:50 +0000
commitb332156c1e5efd3714b8c396ac27ee75e02f58c9 (patch)
tree6c99eec6f89a32471a2e744d758ded57cf520661
parentef530c24c13c1bc4f4b48b7a52510c3ced6fb6bf (diff)
downloadbcm5719-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.h5
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...
//
OpenPOWER on IntegriCloud