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 /include | |
parent | 8cb1d81250ab0957f956146af7bfe62cdd0a9f3e (diff) | |
download | external_llvm-61fc8d670f1e991804c2ab753e567981e60962cb.zip external_llvm-61fc8d670f1e991804c2ab753e567981e60962cb.tar.gz external_llvm-61fc8d670f1e991804c2ab753e567981e60962cb.tar.bz2 |
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 'include')
-rw-r--r-- | include/llvm/CodeGen/CommandFlags.h | 5 | ||||
-rw-r--r-- | include/llvm/Target/TargetOptions.h | 7 |
2 files changed, 1 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/CommandFlags.h b/include/llvm/CodeGen/CommandFlags.h index 22bea34..0c21e76 100644 --- a/include/llvm/CodeGen/CommandFlags.h +++ b/include/llvm/CodeGen/CommandFlags.h @@ -181,11 +181,6 @@ OverrideStackAlignment("stack-alignment", cl::desc("Override default stack alignment"), cl::init(0)); -cl::opt<bool> -EnableRealignStack("realign-stack", - cl::desc("Realign stack if needed"), - cl::init(true)); - cl::opt<std::string> TrapFuncName("trap-func", cl::Hidden, cl::desc("Emit a call to trap function rather than a trap instruction"), diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h index feba340..d9c8651 100644 --- a/include/llvm/Target/TargetOptions.h +++ b/include/llvm/Target/TargetOptions.h @@ -48,7 +48,7 @@ namespace llvm { UseSoftFloat(false), NoZerosInBSS(false), JITEmitDebugInfo(false), JITEmitDebugInfoToDisk(false), GuaranteedTailCallOpt(false), DisableTailCalls(false), - StackAlignmentOverride(0), RealignStack(true), + StackAlignmentOverride(0), EnableFastISel(false), PositionIndependentExecutable(false), EnableSegmentedStacks(false), UseInitArray(false), TrapFuncName(""), FloatABIType(FloatABI::Default), AllowFPOpFusion(FPOpFusion::Standard) @@ -141,10 +141,6 @@ namespace llvm { /// StackAlignmentOverride - Override default stack alignment for target. unsigned StackAlignmentOverride; - /// RealignStack - This flag indicates whether the stack should be - /// automatically realigned, if needed. - unsigned RealignStack : 1; - /// EnableFastISel - This flag enables fast-path instruction selection /// which trades away generated code quality in favor of reducing /// compile time. @@ -213,7 +209,6 @@ inline bool operator==(const TargetOptions &LHS, ARE_EQUAL(GuaranteedTailCallOpt) && ARE_EQUAL(DisableTailCalls) && ARE_EQUAL(StackAlignmentOverride) && - ARE_EQUAL(RealignStack) && ARE_EQUAL(EnableFastISel) && ARE_EQUAL(PositionIndependentExecutable) && ARE_EQUAL(EnableSegmentedStacks) && |