aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/CallGraph.h
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
commit56151dad2ea6bd57c516fcb24cf175cfeab3e602 (patch)
tree5c9804c39ad708df38a647898fe15938bc108545 /include/llvm/Analysis/CallGraph.h
parent516a74c01a6b4303dd09875e923f47f5e948a4c4 (diff)
downloadexternal_llvm-56151dad2ea6bd57c516fcb24cf175cfeab3e602.zip
external_llvm-56151dad2ea6bd57c516fcb24cf175cfeab3e602.tar.gz
external_llvm-56151dad2ea6bd57c516fcb24cf175cfeab3e602.tar.bz2
Add CallGraph::getOrInsertFunction, to allow clients to update the callgraph
when they change the program git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/CallGraph.h')
-rw-r--r--include/llvm/Analysis/CallGraph.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h
index e477be3..7343060 100644
--- a/include/llvm/Analysis/CallGraph.h
+++ b/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...
//