diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2009-01-04 22:54:40 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2009-01-04 22:54:40 +0000 |
| commit | 3a0c106979837595473f8d34087d61c17bcee06c (patch) | |
| tree | a5496bcdc0fe1dda400a24aecd48f0b19210530e /llvm/include | |
| parent | 122db26b282c29c2057546bbdfe790ac74c4dd3f (diff) | |
| download | bcm5719-llvm-3a0c106979837595473f8d34087d61c17bcee06c.tar.gz bcm5719-llvm-3a0c106979837595473f8d34087d61c17bcee06c.zip | |
Add a mechanism to specify attributes in getOrInsertFunction.
llvm-svn: 61645
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Module.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/include/llvm/Module.h b/llvm/include/llvm/Module.h index 09eba81b4eb..af687c84c30 100644 --- a/llvm/include/llvm/Module.h +++ b/llvm/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. |

