mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 10:38:46 +00:00
Reenable compact unwind by default. However, also emit the old version of unwind
information for older linkers. llvm-svn: 139206
This commit is contained in:
parent
9ae90800a2
commit
763ed58408
@ -35,13 +35,6 @@ using namespace llvm;
|
||||
// FIXME: completely move here.
|
||||
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 {
|
||||
return !MF.getFrameInfo()->hasVarSizedObjects();
|
||||
}
|
||||
@ -908,7 +901,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
}
|
||||
|
||||
// Darwin 10.7 and greater has support for compact unwind encoding.
|
||||
if (GenerateCompactUnwind && STI.getTargetTriple().isMacOSX() &&
|
||||
if (STI.getTargetTriple().isMacOSX() &&
|
||||
!STI.getTargetTriple().isMacOSXVersionLT(10, 7))
|
||||
MMI.setCompactUnwindEncoding(getCompactUnwindEncoding(MF));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user