summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-02-18 21:12:58 +0000
committerBill Wendling <isanbard@gmail.com>2011-02-18 21:12:58 +0000
commit8fbe09f1609fd0de2c56675eac4218d79e73d08f (patch)
treea836093ed66d5633c3fd380daa0e599fb733a320 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent489517c4a46fcc030ef21c302eb61c9fd773721c (diff)
downloadbcm5719-llvm-8fbe09f1609fd0de2c56675eac4218d79e73d08f.tar.gz
bcm5719-llvm-8fbe09f1609fd0de2c56675eac4218d79e73d08f.zip
Reapply r114997 now that the buildbots have been updated.
llvm-svn: 125960
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index cc278658d09..0b7bd98cc69 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -441,15 +441,11 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
Triple T(((LLVMTargetMachine&)TM).getTargetTriple());
if (T.getOS() == Triple::Darwin) {
- switch (T.getDarwinMajorNumber()) {
- case 7: // 10.3 Panther.
- case 8: // 10.4 Tiger.
+ unsigned MajNum = T.getDarwinMajorNumber();
+ if (MajNum == 7 || MajNum == 8) // 10.3 Panther, 10.4 Tiger
CommDirectiveSupportsAlignment = false;
- break;
- case 9: // 10.5 Leopard.
- case 10: // 10.6 SnowLeopard.
- break;
- }
+ if (MajNum > 9) // 10.6 SnowLeopard
+ IsFunctionEHSymbolGlobal = false;
}
TargetLoweringObjectFile::Initialize(Ctx, TM);
OpenPOWER on IntegriCloud