aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-01-04 22:54:40 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-01-04 22:54:40 +0000
commit1186bf1350145474bb7f0ab4d38ec33dae5c79d2 (patch)
treeea2b8faf1b143ea71bc2de6eb1a0e40cde250355 /include
parentad7d1e2085a489dbedc65b99bab811771ead1aab (diff)
downloadexternal_llvm-1186bf1350145474bb7f0ab4d38ec33dae5c79d2.zip
external_llvm-1186bf1350145474bb7f0ab4d38ec33dae5c79d2.tar.gz
external_llvm-1186bf1350145474bb7f0ab4d38ec33dae5c79d2.tar.bz2
Add a mechanism to specify attributes in getOrInsertFunction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Module.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 09eba81..af687c8 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -194,6 +194,9 @@ public:
/// the existing function.
/// 4. Finally, the function exists but has the wrong prototype: return the
/// function with a constantexpr cast to the right prototype.
+ Constant *getOrInsertFunction(const std::string &Name, const FunctionType *T,
+ AttrListPtr AttributeList);
+
Constant *getOrInsertFunction(const std::string &Name, const FunctionType *T);
/// getOrInsertFunction - Look up the specified function in the module symbol
@@ -203,7 +206,11 @@ public:
/// named function has a different type. This version of the method takes a
/// null terminated list of function arguments, which makes it easier for
/// clients to use.
- Constant *getOrInsertFunction(const std::string &Name, const Type *RetTy,...)
+ Constant *getOrInsertFunction(const std::string &Name,
+ AttrListPtr AttributeList,
+ const Type *RetTy, ...) END_WITH_NULL;
+
+ Constant *getOrInsertFunction(const std::string &Name, const Type *RetTy, ...)
END_WITH_NULL;
/// getFunction - Look up the specified function in the module symbol table.