diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-30 19:29:02 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-30 19:29:02 +0000 |
commit | 0f9827cd9417c7385c92fa4a0d8d8b4242b3729d (patch) | |
tree | 09e27d00b9d1c8d548874ec5d358ab78c186f31e /lib/Target | |
parent | 37fefc20d3a1e3934a377567d54a141f67752227 (diff) | |
download | external_llvm-0f9827cd9417c7385c92fa4a0d8d8b4242b3729d.zip external_llvm-0f9827cd9417c7385c92fa4a0d8d8b4242b3729d.tar.gz external_llvm-0f9827cd9417c7385c92fa4a0d8d8b4242b3729d.tar.bz2 |
Command line option to enable support for segmented stacks:
-segmented-stacks.
Patch by Sanjoy Das!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/TargetMachine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index f74c8c3..fe8a7ce 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -47,6 +47,7 @@ namespace llvm { bool StrongPHIElim; bool HasDivModLibcall; bool AsmVerbosityDefault(false); + bool EnableSegmentedStacks; } static cl::opt<bool, true> @@ -178,6 +179,12 @@ static cl::opt<bool> FunctionSections("ffunction-sections", cl::desc("Emit functions into separate sections"), cl::init(false)); +static cl::opt<bool, true> +SegmentedStacks("segmented-stacks", + cl::desc("Use segmented stacks if possible."), + cl::location(EnableSegmentedStacks), + cl::init(false)); + //--------------------------------------------------------------------------- // TargetMachine Class // |