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
This commit is contained in:
Chris Lattner 2006-01-14 20:01:50 +00:00
parent 516a74c01a
commit 56151dad2e

View File

@ -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...
//