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 /llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | |
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 'llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions