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 | 8fbe09f1609fd0de2c56675eac4218d79e73d08f (patch) | |
tree | a836093ed66d5633c3fd380daa0e599fb733a320 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 489517c4a46fcc030ef21c302eb61c9fd773721c (diff) | |
download | bcm5719-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.cpp | 12 |
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); |