diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-06-22 23:16:51 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-06-22 23:16:51 +0000 |
commit | f942585daeaaf8ef60501563c37b5ffee27a72a7 (patch) | |
tree | 5010d40c066c30b32057586ce12a655c7eab2a04 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 09aff6bcad15f41c427ee6bea897ac1cb19c3aec (diff) | |
download | bcm5719-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.cpp | 8 |
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); |