summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-22 22:30:33 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-22 22:30:33 +0000
commit9cedbefb24a5d7a0cf6612fb779dbb9f046ffe97 (patch)
tree42459747479566aff64236c9c0877fdde7872f2b /clang/lib/Frontend
parenta83c016d229fafeac74e1dfb4938d322c3c0186e (diff)
downloadbcm5719-llvm-9cedbefb24a5d7a0cf6612fb779dbb9f046ffe97.tar.gz
bcm5719-llvm-9cedbefb24a5d7a0cf6612fb779dbb9f046ffe97.zip
Add a -fno-elide-constructors option to clang-cc.
llvm-svn: 79782
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/PCHReader.cpp1
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp
index b368124f4f6..c025fcd1aa4 100644
--- a/clang/lib/Frontend/PCHReader.cpp
+++ b/clang/lib/Frontend/PCHReader.cpp
@@ -107,6 +107,7 @@ PCHValidator::ReadLanguageOptions(const LangOptions &LangOpts) {
PARSE_LANGOPT_BENIGN(getVisibilityMode());
PARSE_LANGOPT_BENIGN(InstantiationDepth);
PARSE_LANGOPT_IMPORTANT(OpenCL, diag::warn_pch_opencl);
+ PARSE_LANGOPT_IMPORTANT(ElideConstructors, diag::warn_elide_constructors);
#undef PARSE_LANGOPT_IRRELEVANT
#undef PARSE_LANGOPT_BENIGN
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp
index 48a1c9d5e3a..5e1ea0b1400 100644
--- a/clang/lib/Frontend/PCHWriter.cpp
+++ b/clang/lib/Frontend/PCHWriter.cpp
@@ -621,6 +621,7 @@ void PCHWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
Record.push_back(LangOpts.getVisibilityMode());
Record.push_back(LangOpts.InstantiationDepth);
Record.push_back(LangOpts.OpenCL);
+ Record.push_back(LangOpts.ElideConstructors);
Stream.EmitRecord(pch::LANGUAGE_OPTIONS, Record);
}
OpenPOWER on IntegriCloud