aboutsummaryrefslogtreecommitdiff
path: root/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
commitf80519b919a348db004fba18530706314d1ebfb5 (patch)
tree05651afdeab422707a07f23836815bd3835281ce /lib/CodeGen/CodeGenModule.h
parentc34fcedc5f1584512dcc5472bacb29ebd7f67c6e (diff)
Set function attributes (sext, zext, etc.) on Objective-C methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 70a91b6a99..a6308736cc 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/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);