summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-10-15 17:16:30 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-10-15 17:16:30 +0000
commitdaf483186888965341ce5636ff9090115c48ef35 (patch)
tree5efa02794529f041a08e312267020739ee191864 /clang/lib/Driver/Tools.cpp
parentdc2973f735cc0364c0557272ac94525357ea01be (diff)
downloadbcm5719-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.cpp5
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(
OpenPOWER on IntegriCloud