diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-04 23:41:35 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-04 23:41:35 +0000 |
commit | 449a339ffdc1183c3d6acad029d4373566864e6e (patch) | |
tree | e094d989e738528823c94c12481883b4c8b275c1 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 09fdbcf400c97a4a672af09a1374bdc1dcce2f74 (diff) | |
download | bcm5719-llvm-449a339ffdc1183c3d6acad029d4373566864e6e.tar.gz bcm5719-llvm-449a339ffdc1183c3d6acad029d4373566864e6e.zip |
Set function attributes (sext, zext, etc.) on Objective-C methods.
llvm-svn: 55812
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 70a91b6a997..a6308736ccc 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -207,10 +207,16 @@ public: void ErrorUnsupported(const Decl *D, const char *Type, bool OmitOnError=false); + void SetMethodAttributes(const ObjCMethodDecl *MD, + llvm::Function *F); + private: + /// SetFunctionAttributesForDefinition - Set function attributes + /// specific to a function definition. + void SetFunctionAttributesForDefinition(llvm::Function *F); + void SetFunctionAttributes(const FunctionDecl *FD, - llvm::Function *F, - const llvm::FunctionType *FTy); + llvm::Function *F); void SetGlobalValueAttributes(const FunctionDecl *FD, llvm::GlobalValue *GV); |