diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-17 00:48:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-17 00:48:04 +0000 |
commit | c3e7cff6d3cc890a4c1a8ddcb0a716c052141fc2 (patch) | |
tree | b97d8a97300fcae264538a9c11101f64a16888ef /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 09dbb0b5e0f28e940fd190fb13fc5b8e2f07dc5c (diff) | |
download | bcm5719-llvm-c3e7cff6d3cc890a4c1a8ddcb0a716c052141fc2.tar.gz bcm5719-llvm-c3e7cff6d3cc890a4c1a8ddcb0a716c052141fc2.zip |
Attributes on block functions were not being set.
- <rdar://problem/6800351> clang not producing correct large struct
return code for Blocks
llvm-svn: 69337
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d1d67a11b8a..7cb5e43cb59 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -340,14 +340,15 @@ void CodeGenModule::SetCommonAttributes(const Decl *D, GV->setSection(SA->getName()); } -void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, - llvm::Function *F) { - SetLLVMFunctionAttributes(MD, getTypes().getFunctionInfo(MD), F); - SetLLVMFunctionAttributesForDefinition(MD, F); +void CodeGenModule::SetInternalFunctionAttributes(const Decl *D, + llvm::Function *F, + const CGFunctionInfo &FI) { + SetLLVMFunctionAttributes(D, FI, F); + SetLLVMFunctionAttributesForDefinition(D, F); F->setLinkage(llvm::Function::InternalLinkage); - SetCommonAttributes(MD, F); + SetCommonAttributes(D, F); } void CodeGenModule::SetFunctionAttributes(const FunctionDecl *FD, |