diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-09-06 23:47:14 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-09-06 23:47:14 +0000 |
commit | c8725d11f8756c57bdbceccc61062a9d560261c5 (patch) | |
tree | e8a414eee8536878d0327d64701fa3150c0d2ed0 | |
parent | e421ad64ff76b7d89a4ddf41bdb056376bc5f6a6 (diff) |
Reenable compact unwind by default. However, also emit the old version of unwind
information for older linkers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139206 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86FrameLowering.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 19486f871f..6bc349ffc1 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -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)); } |