// FIXME: completely move here.
extern cl::opt<bool> ForceStackAlign;
+// FIXME: Remove once linker support is available.
+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();
}
}
// Darwin 10.7 and greater has support for compact unwind encoding.
- if (false && // FIXME: Enable once linker support is available.
+ if (GenerateCompactUnwind &&
STI.isTargetDarwin() && !STI.getTargetTriple().isMacOSXVersionLT(10, 6))
MMI.setCompactUnwindEncoding(getCompactUnwindEncoding(MF));
}