diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-10-31 01:28:07 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-10-31 01:28:07 +0000 |
commit | 7791f1a4a952f28d1417a0fb05b94f15c98ddf91 (patch) | |
tree | 9583b647b1259f33d976fbbcd52030e568d125fb /clang/lib/CodeGen/CodeGenModule.h | |
parent | dbb0abbf475adccbd2cfc744118b3b2090eb4ba4 (diff) | |
download | bcm5719-llvm-7791f1a4a952f28d1417a0fb05b94f15c98ddf91.tar.gz bcm5719-llvm-7791f1a4a952f28d1417a0fb05b94f15c98ddf91.zip |
[CodeGen] Call SetInternalFunctionAttributes to attach function
attributes to internal functions.
This patch fixes CodeGenModule::CreateGlobalInitOrDestructFunction to
use SetInternalFunctionAttributes instead of SetLLVMFunctionAttributes
to attach function attributes to internal functions.
Also, make sure the correct CGFunctionInfo is passed instead of always
passing what arrangeNullaryFunction returns.
rdar://problem/20828324
Differential Revision: http://reviews.llvm.org/D13610
llvm-svn: 251734
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 95f10387762..d3f6e515ad1 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -686,6 +686,7 @@ public: llvm::Function * CreateGlobalInitOrDestructFunction(llvm::FunctionType *ty, const Twine &name, + const CGFunctionInfo &FI, SourceLocation Loc = SourceLocation(), bool TLS = false); |