From 1d56c9eed77fe703f389bfa82f79b155a30168d4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 23 Dec 2010 21:35:43 +0000 Subject: Add -fobjc-default-synthesized-properties flag to allow us to explicitly control whether or not Objective-C properties are default synthesized. Currently this feature only works when using the -fobjc-non-fragile-abi2 flag (so there is no functionality change), but we can now turn off this feature without turning off all the features coupled with -fobjc-non-fragile-abi2. llvm-svn: 122519 --- clang/lib/Driver/ToolChains.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/lib/Driver/ToolChains.h') diff --git a/clang/lib/Driver/ToolChains.h b/clang/lib/Driver/ToolChains.h index 04288a2ee06..33b80534532 100644 --- a/clang/lib/Driver/ToolChains.h +++ b/clang/lib/Driver/ToolChains.h @@ -176,6 +176,12 @@ public: getTriple().getArch() == llvm::Triple::x86_64); #endif } + + virtual bool IsObjCDefaultSynthPropertiesDefault() const { + // Always allow default synthesized properties on Darwin. + return true; + } + virtual bool IsObjCNonFragileABIDefault() const { // Non-fragile ABI is default for everything but i386. return getTriple().getArch() != llvm::Triple::x86; -- cgit v1.2.3