summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-01-23 17:55:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-01-23 17:55:27 +0000
commitb3eca9bb71aa5cc0b5f6c88fd98b50b495c38dc3 (patch)
tree2c551745caec807a795a1f91e5bc4133911fb492 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent8f01420d9d10c5ec56f917cc0f8923ff61647795 (diff)
downloadbcm5719-llvm-b3eca9bb71aa5cc0b5f6c88fd98b50b495c38dc3.tar.gz
bcm5719-llvm-b3eca9bb71aa5cc0b5f6c88fd98b50b495c38dc3.zip
Add support for the --noexecstack option.
llvm-svn: 124077
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 5cff96db736..80dfc763af6 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -168,7 +168,8 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
AsmStreamer.reset(getTarget().createObjectStreamer(TargetTriple, *Context,
*TAB, Out, MCE,
- hasMCRelaxAll()));
+ hasMCRelaxAll(),
+ hasMCNoExecStack()));
AsmStreamer.get()->InitSections();
break;
}
OpenPOWER on IntegriCloud