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
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 70a91b6..a630873 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -207,10 +207,16 @@
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);