diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-02-18 21:12:58 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-02-18 21:12:58 +0000 |
commit | 5028249fab0e0a5a2f033dd5ff2d4d396d758de1 (patch) | |
tree | 3fb6d59d2374d4b2bb43fbe782b8b0f1e8378de5 /lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | ebdf0f9e0c0b67e5d173227dc76779f5afdccb8f (diff) |
Reapply r114997 now that the buildbots have been updated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index cc278658d0..0b7bd98cc6 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/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); |