From 0e4f40e1bbc4dce16bbb9870300a435419f1b3d5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 17 Apr 2009 00:48:04 +0000 Subject: Attributes on block functions were not being set. - clang not producing correct large struct return code for Blocks git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69337 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 17a9a9f907..469c637e2d 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -303,8 +303,12 @@ public: void ErrorUnsupported(const Decl *D, const char *Type, bool OmitOnError=false); - void SetMethodAttributes(const ObjCMethodDecl *MD, - llvm::Function *F); + /// SetInternalFunctionAttributes - Set the attributes on the LLVM + /// function for the given decl and function info. This applies + /// attributes necessary for handling the ABI as well as user + /// specified attributes like section. + void SetInternalFunctionAttributes(const Decl *D, llvm::Function *F, + const CGFunctionInfo &FI); /// SetLLVMFunctionAttributes - Set the LLVM function attributes /// (sext, zext, etc). -- cgit v1.2.3