diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index e477be34f8e..734306015c0 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... //