[cfe-commits] r154331 - in /cfe/trunk: include/clang/Driver/Options.td lib/Driver/Tools.cpp test/Driver/no-objc-default-synthesize-properties.m
Fariborz Jahanian
fjahanian at apple.com
Mon Apr 9 11:20:28 PDT 2012
Author: fjahanian
Date: Mon Apr 9 13:20:28 2012
New Revision: 154331
URL: http://llvm.org/viewvc/llvm-project?rev=154331&view=rev
Log:
objective-c: Remove -fno-objc-default-synthesize-properties
as the driver option.
// rdar://11209719
Added:
cfe/trunk/test/Driver/no-objc-default-synthesize-properties.m
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=154331&r1=154330&r2=154331&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Mon Apr 9 13:20:28 2012
@@ -432,8 +432,6 @@
def fno_ms_extensions : Flag<"-fno-ms-extensions">, Group<f_Group>;
def fno_ms_compatibility : Flag<"-fno-ms-compatibility">, Group<f_Group>;
def fno_delayed_template_parsing : Flag<"-fno-delayed-template-parsing">, Group<f_Group>;
-def fno_objc_default_synthesize_properties
- : Flag<"-fno-objc-default-synthesize-properties">, Group<f_Group>;
def fno_objc_exceptions: Flag<"-fno-objc-exceptions">, Group<f_Group>;
def fno_objc_legacy_dispatch : Flag<"-fno-objc-legacy-dispatch">, Group<f_Group>;
def fno_omit_frame_pointer : Flag<"-fno-omit-frame-pointer">, Group<f_Group>;
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=154331&r1=154330&r2=154331&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Apr 9 13:20:28 2012
@@ -2394,9 +2394,8 @@
// -fobjc-default-synthesize-properties=1 is default. This only has an effect
// if the nonfragile objc abi is used.
- if (Args.hasFlag(options::OPT_fobjc_default_synthesize_properties,
- options::OPT_fno_objc_default_synthesize_properties,
- getToolChain().IsObjCDefaultSynthPropertiesDefault())) {
+ if (Args.hasArg(options::OPT_fobjc_default_synthesize_properties) ||
+ getToolChain().IsObjCDefaultSynthPropertiesDefault()) {
CmdArgs.push_back("-fobjc-default-synthesize-properties");
}
Added: cfe/trunk/test/Driver/no-objc-default-synthesize-properties.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/no-objc-default-synthesize-properties.m?rev=154331&view=auto
==============================================================================
--- cfe/trunk/test/Driver/no-objc-default-synthesize-properties.m (added)
+++ cfe/trunk/test/Driver/no-objc-default-synthesize-properties.m Mon Apr 9 13:20:28 2012
@@ -0,0 +1,9 @@
+// RUN: %clang -fsyntax-only -fno-objc-default-synthesize-properties %s 2>&1 | FileCheck %s
+
+ at interface I
+ at property int P;
+ at end
+
+ at implementation I
+ at end
+// CHECK: warning: argument unused during compilation: '-fno-objc-default-synthesize-properties'
More information about the cfe-commits
mailing list