diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 17:55:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 17:55:27 +0000 |
commit | 96aa78c8c5ef1a5f268539c9edc86569b436d573 (patch) | |
tree | e664056c0f0a8ce32c72d19cf0f0ae1e8eefd038 /lib/Target/ARM/ARMTargetMachine.cpp | |
parent | 584520e8e2c1f8cc04bc8dd4dc4ea6c390627317 (diff) |
Add support for the --noexecstack option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index a68fd4945e..60df718ad2 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -39,7 +39,8 @@ static MCStreamer *createMCStreamer(const Target &T, const std::string &TT, MCContext &Ctx, TargetAsmBackend &TAB, raw_ostream &OS, MCCodeEmitter *Emitter, - bool RelaxAll) { + bool RelaxAll, + bool NoExecStack) { switch (Triple(TT).getOS()) { case Triple::Darwin: return createMachOStreamer(Ctx, TAB, OS, Emitter, RelaxAll); @@ -50,7 +51,7 @@ static MCStreamer *createMCStreamer(const Target &T, const std::string &TT, llvm_unreachable("ARM does not support Windows COFF format"); return NULL; default: - return createELFStreamer(Ctx, TAB, OS, Emitter, RelaxAll); + return createELFStreamer(Ctx, TAB, OS, Emitter, RelaxAll, NoExecStack); } } |