summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-08-30 20:54:11 +0000
committerBill Wendling <isanbard@gmail.com>2011-08-30 20:54:11 +0000
commit7a9c3033a43b91aa0b675bbc58397247249316a6 (patch)
treea5970386d8ac8317932797579870db944d5cf83d /llvm/lib/Target
parent065c35726f38dcc442a39787e20b2d3f62808b9e (diff)
downloadbcm5719-llvm-7a9c3033a43b91aa0b675bbc58397247249316a6.tar.gz
bcm5719-llvm-7a9c3033a43b91aa0b675bbc58397247249316a6.zip
Enable compact unwind info by default. This only applies to Darwin when CFI is
disabled. llvm-svn: 138826
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86FrameLowering.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index c399ec3fa2e..da252a79ac8 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/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,8 +901,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
}
// Darwin 10.7 and greater has support for compact unwind encoding.
- if (GenerateCompactUnwind &&
- STI.isTargetDarwin() && !STI.getTargetTriple().isMacOSXVersionLT(10, 6))
+ if (STI.isTargetDarwin() && !STI.getTargetTriple().isMacOSXVersionLT(10, 6))
MMI.setCompactUnwindEncoding(getCompactUnwindEncoding(MF));
}
OpenPOWER on IntegriCloud