diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-08-01 21:42:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-08-01 21:42:05 +0000 |
commit | 61fc8d670f1e991804c2ab753e567981e60962cb (patch) | |
tree | 01bf0e1eba2709eb4608e1e00504425452f66a53 /tools/lto | |
parent | 8cb1d81250ab0957f956146af7bfe62cdd0a9f3e (diff) | |
download | llvm-61fc8d670f1e991804c2ab753e567981e60962cb.tar.gz llvm-61fc8d670f1e991804c2ab753e567981e60962cb.tar.bz2 llvm-61fc8d670f1e991804c2ab753e567981e60962cb.tar.xz |
Use function attributes to indicate that we don't want to realign the stack.
Function attributes are the future! So just query whether we want to realign the
stack directly from the function instead of through a random target options
structure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/LTOModule.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 7aeadc3da4..e89733f587 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -121,11 +121,6 @@ OverrideStackAlignment("stack-alignment", cl::desc("Override default stack alignment"), cl::init(0)); -static cl::opt<bool> -EnableRealignStack("realign-stack", - cl::desc("Realign stack if needed"), - cl::init(true)); - static cl::opt<std::string> TrapFuncName("trap-func", cl::Hidden, cl::desc("Emit a call to trap function rather than a trap instruction"), @@ -244,7 +239,6 @@ void LTOModule::getTargetOptions(TargetOptions &Options) { Options.GuaranteedTailCallOpt = EnableGuaranteedTailCallOpt; Options.DisableTailCalls = DisableTailCalls; Options.StackAlignmentOverride = OverrideStackAlignment; - Options.RealignStack = EnableRealignStack; Options.TrapFuncName = TrapFuncName; Options.PositionIndependentExecutable = EnablePIE; Options.EnableSegmentedStacks = SegmentedStacks; |