forked from OSchip/llvm-project
Rename TargetOptions::StackAlignment to StackAlignmentOverride.
llvm-svn: 133739
This commit is contained in:
parent
1b049f5851
commit
8b2a2a1158
|
@ -133,8 +133,8 @@ namespace llvm {
|
|||
/// as their parent function, etc.), using an alternate ABI if necessary.
|
||||
extern bool GuaranteedTailCallOpt;
|
||||
|
||||
/// StackAlignment - Override default stack alignment for target.
|
||||
extern unsigned StackAlignment;
|
||||
/// StackAlignmentOverride - Override default stack alignment for target.
|
||||
extern unsigned StackAlignmentOverride;
|
||||
|
||||
/// RealignStack - This flag indicates whether the stack should be
|
||||
/// automatically realigned, if needed.
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace llvm {
|
|||
Reloc::Model RelocationModel;
|
||||
CodeModel::Model CMModel;
|
||||
bool GuaranteedTailCallOpt;
|
||||
unsigned StackAlignment;
|
||||
unsigned StackAlignmentOverride;
|
||||
bool RealignStack;
|
||||
bool DisableJumpTables;
|
||||
bool StrongPHIElim;
|
||||
|
@ -183,7 +183,7 @@ EnableGuaranteedTailCallOpt("tailcallopt",
|
|||
static cl::opt<unsigned, true>
|
||||
OverrideStackAlignment("stack-alignment",
|
||||
cl::desc("Override default stack alignment"),
|
||||
cl::location(StackAlignment),
|
||||
cl::location(StackAlignmentOverride),
|
||||
cl::init(0));
|
||||
static cl::opt<bool, true>
|
||||
EnableRealignStack("realign-stack",
|
||||
|
|
|
@ -117,7 +117,7 @@ X86_64TargetMachine::X86_64TargetMachine(const Target &T, const std::string &TT,
|
|||
X86TargetMachine::X86TargetMachine(const Target &T, const std::string &TT,
|
||||
const std::string &FS, bool is64Bit)
|
||||
: LLVMTargetMachine(T, TT),
|
||||
Subtarget(TT, FS, is64Bit, StackAlignment),
|
||||
Subtarget(TT, FS, is64Bit, StackAlignmentOverride),
|
||||
FrameLowering(*this, Subtarget),
|
||||
ELFWriterInfo(is64Bit, true) {
|
||||
DefRelocModel = getRelocationModel();
|
||||
|
|
Loading…
Reference in New Issue