forked from OSchip/llvm-project
objective-c: Remove -fno-objc-default-synthesize-properties
as the driver option. // rdar://11209719 llvm-svn: 154331
This commit is contained in:
parent
3521ae9580
commit
ba8ef296e4
|
|
@ -432,8 +432,6 @@ def fno_modules : Flag <"-fno-modules">, Group<f_Group>, Flags<[NoForward]>;
|
|||
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>;
|
||||
|
|
|
|||
|
|
@ -2394,9 +2394,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
|
||||
// -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
// RUN: %clang -fsyntax-only -fno-objc-default-synthesize-properties %s 2>&1 | FileCheck %s
|
||||
|
||||
@interface I
|
||||
@property int P;
|
||||
@end
|
||||
|
||||
@implementation I
|
||||
@end
|
||||
// CHECK: warning: argument unused during compilation: '-fno-objc-default-synthesize-properties'
|
||||
Loading…
Reference in New Issue