diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-19 17:53:30 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-19 17:53:30 +0000 |
commit | 776dbf9704353515b422ee13e481194c937ba01d (patch) | |
tree | de8ba51d0a82799dd36cc041f06a5d2acb05c27a /lib/CodeGen/CGObjCMac.cpp | |
parent | b1af4c810fbf71d70d356c6244b157784e0d1405 (diff) |
Force clang to produce legacy api for messaging
in for pre-snowleoprd (NeXt runtime). Fixes
radar 7866951
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index f038509edc..d70537e49c 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4264,7 +4264,10 @@ void CGObjCNonFragileABIMac::FinishNonFragileABIModule() { bool CGObjCNonFragileABIMac::LegacyDispatchedSelector(Selector Sel) { if (CGM.getCodeGenOpts().ObjCLegacyDispatch) return true; - + /* Leopard */ + if (CGM.getContext().Target.getTriple().getDarwinMajorNumber() <= 9) + return false; + if (NonLegacyDispatchMethods.empty()) { NonLegacyDispatchMethods.insert(GetNullarySelector("alloc")); NonLegacyDispatchMethods.insert(GetNullarySelector("class")); |