diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-10-15 17:16:30 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-10-15 17:16:30 +0000 |
| commit | daf483186888965341ce5636ff9090115c48ef35 (patch) | |
| tree | 5efa02794529f041a08e312267020739ee191864 /clang/lib/Driver/Tools.cpp | |
| parent | dc2973f735cc0364c0557272ac94525357ea01be (diff) | |
| download | bcm5719-llvm-daf483186888965341ce5636ff9090115c48ef35.tar.gz bcm5719-llvm-daf483186888965341ce5636ff9090115c48ef35.zip | |
ObjectiveC driver. Scrap -fno-objc-legacy-dispatch for NeXT
runtime. It will be silently ignored and regardless
of deployment target. // rdar://14803286
llvm-svn: 192719
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 8cf35e8e266..9b23cbf9319 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -3195,8 +3195,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, ObjCRuntime objcRuntime = AddObjCRuntimeArgs(Args, CmdArgs, rewriteKind); // -fobjc-dispatch-method is only relevant with the nonfragile-abi, and - // legacy is the default. - if (objcRuntime.isNonFragile()) { + // legacy is the default. Next runtime is always legacy dispatch and + // -fno-objc-legacy-dispatch gets ignored silently. + if (objcRuntime.isNonFragile() && !objcRuntime.isNeXTFamily()) { if (!Args.hasFlag(options::OPT_fobjc_legacy_dispatch, options::OPT_fno_objc_legacy_dispatch, objcRuntime.isLegacyDispatchDefaultForArch( |

