ObjectiveC driver. change to reinstate -fno-objc-legacy-dispatch behavior

when the deployment target is 10.5. // rdar://15852259

llvm-svn: 199780
This commit is contained in:
Fariborz Jahanian 2014-01-22 00:43:54 +00:00
parent c278c00613
commit bbf322b0bb
1 changed files with 4 additions and 8 deletions

View File

@ -99,14 +99,10 @@ public:
Arch == llvm::Triple::x86_64)
return false;
}
else if (isNeXTFamily() && getVersion().getMajor() == 10) {
unsigned minor = 0;
if (getVersion().getMinor().hasValue())
minor = getVersion().getMinor().getValue();
if (minor == 5 &&
(Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64))
return false;
}
else if ((getKind() == MacOSX) && isNonFragile() &&
(getVersion() >= VersionTuple(10, 5)) &&
(getVersion() < VersionTuple(10, 6)))
return Arch != llvm::Triple::x86_64;
// Except for deployment target of 10.5,
// Mac runtimes use legacy dispatch everywhere now.
return true;