summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-12-23 21:35:43 +0000
committerTed Kremenek <kremenek@apple.com>2010-12-23 21:35:43 +0000
commit1d56c9eed77fe703f389bfa82f79b155a30168d4 (patch)
tree29762c9bc0ea18c3550ce84cc9b111dd8859343a /clang/lib/Serialization/ASTWriter.cpp
parent4c6340188a96c4f4b5a2e8035f0a0e0b47bfa227 (diff)
downloadbcm5719-llvm-1d56c9eed77fe703f389bfa82f79b155a30168d4.tar.gz
bcm5719-llvm-1d56c9eed77fe703f389bfa82f79b155a30168d4.zip
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
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index bf07c52335b..8c0fb42f5f8 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -860,6 +860,8 @@ void ASTWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
// modern abi enabled.
Record.push_back(LangOpts.ObjCNonFragileABI2); // Objective-C enhanced
// modern abi enabled.
+ Record.push_back(LangOpts.ObjCDefaultSynthProperties); // Objective-C auto-synthesized
+ // properties enabled.
Record.push_back(LangOpts.NoConstantCFStrings); // non cfstring generation enabled..
Record.push_back(LangOpts.PascalStrings); // Allow Pascal strings
OpenPOWER on IntegriCloud