projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66651e4
)
Add a 'no-builtin' attribute if we do not want to simplify calls.
author
Bill Wendling
<isanbard@gmail.com>
Mon, 18 Feb 2013 23:17:48 +0000
(23:17 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Mon, 18 Feb 2013 23:17:48 +0000
(23:17 +0000)
llvm-svn: 175471
clang/lib/CodeGen/CGCall.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGCall.cpp
b/clang/lib/CodeGen/CGCall.cpp
index
6072f60
..
ed448cc
100644
(file)
--- a/
clang/lib/CodeGen/CGCall.cpp
+++ b/
clang/lib/CodeGen/CGCall.cpp
@@
-1016,6
+1016,9
@@
void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
if (CodeGenOpts.NoImplicitFloat)
FuncAttrs.addAttribute(llvm::Attribute::NoImplicitFloat);
+ if (!CodeGenOpts.SimplifyLibCalls)
+ FuncAttrs.addAttribute("no-builtin");
+
if (!TargetOpts.CPU.empty())
FuncAttrs.addAttribute("target-cpu", TargetOpts.CPU);