summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-04 23:41:35 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-04 23:41:35 +0000
commit449a339ffdc1183c3d6acad029d4373566864e6e (patch)
treee094d989e738528823c94c12481883b4c8b275c1 /clang/lib/CodeGen/CodeGenModule.h
parent09fdbcf400c97a4a672af09a1374bdc1dcce2f74 (diff)
downloadbcm5719-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.h10
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);
OpenPOWER on IntegriCloud