summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-31 00:19:18 +0000
committerChris Lattner <sabre@nondot.org>2003-08-31 00:19:18 +0000
commit12d40d2926776b490aed29bce56536aa17415365 (patch)
treee69cdd87b96bfdb9601debb686668788952fd20b /include
parent7b3092d3e4d615270b20132dd5d1c95f49cd0f4d (diff)
downloadllvm-12d40d2926776b490aed29bce56536aa17415365.tar.gz
llvm-12d40d2926776b490aed29bce56536aa17415365.tar.bz2
llvm-12d40d2926776b490aed29bce56536aa17415365.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Module.h6
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.
///