r175471 - Add a 'no-builtin' attribute if we do not want to simplify calls.
Bill Wendling
isanbard at gmail.com
Mon Feb 18 15:17:48 PST 2013
Author: void
Date: Mon Feb 18 17:17:48 2013
New Revision: 175471
URL: http://llvm.org/viewvc/llvm-project?rev=175471&view=rev
Log:
Add a 'no-builtin' attribute if we do not want to simplify calls.
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=175471&r1=175470&r2=175471&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Mon Feb 18 17:17:48 2013
@@ -1016,6 +1016,9 @@ void CodeGenModule::ConstructAttributeLi
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);
More information about the cfe-commits
mailing list