summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-14 23:20:43 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-14 23:20:43 +0000
commita860e6aebcdc7fd7edfe9aaa302d1e64fe6e493e (patch)
treed7a4e92baeb65d32011b5c5a9982dcdc60b4558a /clang/lib/Serialization/ASTWriter.cpp
parent192ed0b7eebcdf7905f595591496c22ced5a7042 (diff)
downloadbcm5719-llvm-a860e6aebcdc7fd7edfe9aaa302d1e64fe6e493e.tar.gz
bcm5719-llvm-a860e6aebcdc7fd7edfe9aaa302d1e64fe6e493e.zip
Introduce a -cc1-level option to turn off related result type
inference, to be used (only) by the Objective-C rewriter. llvm-svn: 133025
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 194d6c31cfa..ba9032e0d33 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -1050,6 +1050,7 @@ void ASTWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
Record.push_back(LangOpts.AppleKext); // Apple's kernel extensions ABI
Record.push_back(LangOpts.ObjCDefaultSynthProperties); // Objective-C auto-synthesized
// properties enabled.
+ Record.push_back(LangOpts.ObjCInferRelatedResultType);
Record.push_back(LangOpts.NoConstantCFStrings); // non cfstring generation enabled..
Record.push_back(LangOpts.PascalStrings); // Allow Pascal strings
OpenPOWER on IntegriCloud