summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-06-22 23:16:51 +0000
committerBill Wendling <isanbard@gmail.com>2011-06-22 23:16:51 +0000
commitf942585daeaaf8ef60501563c37b5ffee27a72a7 (patch)
tree5010d40c066c30b32057586ce12a655c7eab2a04 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent09aff6bcad15f41c427ee6bea897ac1cb19c3aec (diff)
downloadbcm5719-llvm-f942585daeaaf8ef60501563c37b5ffee27a72a7.tar.gz
bcm5719-llvm-f942585daeaaf8ef60501563c37b5ffee27a72a7.zip
Add a flag that indicates whether a target supports compact unwind info or not.
llvm-svn: 133662
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 3f346a35957..df42b2ca0b5 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -487,8 +487,12 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
// .comm doesn't support alignment before Leopard.
Triple T(((LLVMTargetMachine&)TM).getTargetTriple());
- if (T.isMacOSX() && T.isMacOSXVersionLT(10, 5))
- CommDirectiveSupportsAlignment = false;
+ if (T.isMacOSX()) {
+ if (T.isMacOSXVersionLT(10, 5))
+ CommDirectiveSupportsAlignment = false;
+ if (!T.isMacOSXVersionLT(10, 6))
+ SupportsCompactUnwindInfo = true;
+ }
TargetLoweringObjectFile::Initialize(Ctx, TM);
OpenPOWER on IntegriCloud