Changes in directory llvm/include/llvm/Analysis:
CallGraph.h updated: 1.45 -> 1.46 --- Log message: Add CallGraph::getOrInsertFunction, to allow clients to update the callgraph when they change the program --- Diffs of the changes: (+5 -0) CallGraph.h | 5 +++++ 1 files changed, 5 insertions(+) Index: llvm/include/llvm/Analysis/CallGraph.h diff -u llvm/include/llvm/Analysis/CallGraph.h:1.45 llvm/include/llvm/Analysis/CallGraph.h:1.46 --- llvm/include/llvm/Analysis/CallGraph.h:1.45 Sat Jan 14 13:16:51 2006 +++ llvm/include/llvm/Analysis/CallGraph.h Sat Jan 14 14:01:50 2006 @@ -132,6 +132,11 @@ /// 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... // _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits