diff options
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 28e8b868c8..4afcc4bd0f 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -90,6 +90,12 @@ public: /// it. Function *getOrInsertFunction(const std::string &Name, const FunctionType *T); + /// getOrInsertFunction - Look up the specified function in the module symbol + /// table. If it does not exist, add a prototype for the function and return + /// it. This version of the method takes a null terminated list of function + /// arguments, which makes it easier for clients to use. + Function *getOrInsertFunction(const std::string &Name, const Type *RetTy,...); + /// getFunction - Look up the specified function in the module symbol table. /// If it does not exist, return null. /// |