summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-22 00:13:35 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-22 00:13:35 +0000
commitf4d64cb3a53109f3e207b6650fac96a6f83548bf (patch)
tree68e87a99d600467e5b2f7a59e36914228f32ed4b /clang/lib/CodeGen/CodeGenModule.cpp
parent09bd1f71eeb2558f4e4516740328b9d5e9177500 (diff)
downloadbcm5719-llvm-f4d64cb3a53109f3e207b6650fac96a6f83548bf.tar.gz
bcm5719-llvm-f4d64cb3a53109f3e207b6650fac96a6f83548bf.zip
Apply the 'nobuiltin' attribute to call sites when the user specifies `-fno-builtin' on the command line.
llvm-svn: 175836
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 5033b56d3a7..60ec3232031 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -550,7 +550,7 @@ void CodeGenModule::SetLLVMFunctionAttributes(const Decl *D,
llvm::Function *F) {
unsigned CallingConv;
AttributeListType AttributeList;
- ConstructAttributeList(Info, D, AttributeList, CallingConv);
+ ConstructAttributeList(Info, D, AttributeList, CallingConv, false);
F->setAttributes(llvm::AttributeSet::get(getLLVMContext(), AttributeList));
F->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv));
}
OpenPOWER on IntegriCloud