llvm.org GIT mirror llvm / 12d40d2
Add new helper function which makes it even easier to do this sort of thing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8237 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8989 /// it.
9090 Function *getOrInsertFunction(const std::string &Name, const FunctionType *T);
9191
92 /// getOrInsertFunction - Look up the specified function in the module symbol
93 /// table. If it does not exist, add a prototype for the function and return
94 /// it. This version of the method takes a null terminated list of function
95 /// arguments, which makes it easier for clients to use.
96 Function *getOrInsertFunction(const std::string &Name, const Type *RetTy,...);
97
9298 /// getFunction - Look up the specified function in the module symbol table.
9399 /// If it does not exist, return null.
94100 ///