forked from OSchip/llvm-project
Enable compact unwind info by default. This only applies to Darwin when CFI is
disabled. llvm-svn: 138826
This commit is contained in:
parent
065c35726f
commit
7a9c3033a4
|
@ -35,13 +35,6 @@ using namespace llvm;
|
||||||
// FIXME: completely move here.
|
// FIXME: completely move here.
|
||||||
extern cl::opt<bool> ForceStackAlign;
|
extern cl::opt<bool> ForceStackAlign;
|
||||||
|
|
||||||
// FIXME: Remove once linker support is available. The feature exists only on
|
|
||||||
// Darwin at the moment.
|
|
||||||
static cl::opt<bool>
|
|
||||||
GenerateCompactUnwind("gen-compact-unwind",
|
|
||||||
cl::desc("Generate compact unwind encoding"),
|
|
||||||
cl::Hidden);
|
|
||||||
|
|
||||||
bool X86FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const {
|
bool X86FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const {
|
||||||
return !MF.getFrameInfo()->hasVarSizedObjects();
|
return !MF.getFrameInfo()->hasVarSizedObjects();
|
||||||
}
|
}
|
||||||
|
@ -908,8 +901,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Darwin 10.7 and greater has support for compact unwind encoding.
|
// Darwin 10.7 and greater has support for compact unwind encoding.
|
||||||
if (GenerateCompactUnwind &&
|
if (STI.isTargetDarwin() && !STI.getTargetTriple().isMacOSXVersionLT(10, 6))
|
||||||
STI.isTargetDarwin() && !STI.getTargetTriple().isMacOSXVersionLT(10, 6))
|
|
||||||
MMI.setCompactUnwindEncoding(getCompactUnwindEncoding(MF));
|
MMI.setCompactUnwindEncoding(getCompactUnwindEncoding(MF));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue