aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorNowar Gu <nowar100@gmail.com>2011-06-24 01:00:13 +0800
committerNowar Gu <nowar100@gmail.com>2011-06-24 01:00:36 +0800
commit8012bd3687ad40b9bb18505c51ab5cf88eb00c45 (patch)
tree08e4f487cfbb064b3347d7f58895aa0bb63003ac /lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentd095764b07f2e8f8c555ee2d4c3cdb8d42ad4a27 (diff)
parent83471853b1d5a9efe6b9e7565c457fc901f84926 (diff)
downloadexternal_llvm-8012bd3687ad40b9bb18505c51ab5cf88eb00c45.zip
external_llvm-8012bd3687ad40b9bb18505c51ab5cf88eb00c45.tar.gz
external_llvm-8012bd3687ad40b9bb18505c51ab5cf88eb00c45.tar.bz2
Merge upstream to r133718, Fri. 24th June 2011.
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--lib/CodeGen/TargetLoweringObjectFileImpl.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index df42b2c..f2eb5cf 100644
--- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -487,12 +487,8 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
// .comm doesn't support alignment before Leopard.
Triple T(((LLVMTargetMachine&)TM).getTargetTriple());
- if (T.isMacOSX()) {
- if (T.isMacOSXVersionLT(10, 5))
- CommDirectiveSupportsAlignment = false;
- if (!T.isMacOSXVersionLT(10, 6))
- SupportsCompactUnwindInfo = true;
- }
+ if (T.isMacOSX() && T.isMacOSXVersionLT(10, 5))
+ CommDirectiveSupportsAlignment = false;
TargetLoweringObjectFile::Initialize(Ctx, TM);
@@ -610,10 +606,11 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
LSDASection = getContext().getMachOSection("__TEXT", "__gcc_except_tab", 0,
SectionKind::getReadOnlyWithRel());
- CompactUnwindSection =
- getContext().getMachOSection("__LD", "__compact_unwind",
- MCSectionMachO::S_ATTR_DEBUG,
- SectionKind::getReadOnly());
+ if (T.isMacOSX() && !T.isMacOSXVersionLT(10, 6))
+ CompactUnwindSection =
+ getContext().getMachOSection("__LD", "__compact_unwind",
+ MCSectionMachO::S_ATTR_DEBUG,
+ SectionKind::getReadOnly());
// Debug Information.
DwarfAbbrevSection =