Revert r125960, it's breaking darwin10 bootstrap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2011-02-21 23:52:19 +00:00
parent 557b297f35
commit f8597eb0d9
2 changed files with 8 additions and 28 deletions

View File

@ -441,11 +441,15 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
Triple T(((LLVMTargetMachine&)TM).getTargetTriple());
if (T.getOS() == Triple::Darwin) {
unsigned MajNum = T.getDarwinMajorNumber();
if (MajNum == 7 || MajNum == 8) // 10.3 Panther, 10.4 Tiger
switch (T.getDarwinMajorNumber()) {
case 7: // 10.3 Panther.
case 8: // 10.4 Tiger.
CommDirectiveSupportsAlignment = false;
if (MajNum > 9) // 10.6 SnowLeopard
IsFunctionEHSymbolGlobal = false;
break;
case 9: // 10.5 Leopard.
case 10: // 10.6 SnowLeopard.
break;
}
}
TargetLoweringObjectFile::Initialize(Ctx, TM);