aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-04-09 18:20:28 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-04-09 18:20:28 +0000
commite52e2e6f4840c2fa8f7e6289cab976e2c8d2fdc0 (patch)
tree8f0cc83128f514f8a52cb2870925b26b588d5221 /lib/Driver/Tools.cpp
parent4f5b3ac46402e4e0ad8b4faceb1c071d53cd07b3 (diff)
objective-c: Remove -fno-objc-default-synthesize-properties
as the driver option. // rdar://11209719 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 8093d2f6df..4744c6ad9f 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -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");
}