parent
9d90579b6d
commit
f2911667d8
|
@ -1631,6 +1631,7 @@ bool PCHReader::ParseLanguageOptions(
|
|||
PARSE_LANGOPT(PascalStrings);
|
||||
PARSE_LANGOPT(WritableStrings);
|
||||
PARSE_LANGOPT(LaxVectorConversions);
|
||||
PARSE_LANGOPT(AltiVec);
|
||||
PARSE_LANGOPT(Exceptions);
|
||||
PARSE_LANGOPT(NeXTRuntime);
|
||||
PARSE_LANGOPT(Freestanding);
|
||||
|
@ -1654,6 +1655,7 @@ bool PCHReader::ParseLanguageOptions(
|
|||
LangOpts.setVisibilityMode((LangOptions::VisibilityMode)Record[Idx]);
|
||||
++Idx;
|
||||
PARSE_LANGOPT(InstantiationDepth);
|
||||
PARSE_LANGOPT(OpenCL);
|
||||
#undef PARSE_LANGOPT
|
||||
|
||||
return Listener->ReadLanguageOptions(LangOpts);
|
||||
|
|
|
@ -531,6 +531,7 @@ void PCHWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
|
|||
Record.push_back(LangOpts.PascalStrings); // Allow Pascal strings
|
||||
Record.push_back(LangOpts.WritableStrings); // Allow writable strings
|
||||
Record.push_back(LangOpts.LaxVectorConversions);
|
||||
Record.push_back(LangOpts.AltiVec);
|
||||
Record.push_back(LangOpts.Exceptions); // Support exception handling.
|
||||
|
||||
Record.push_back(LangOpts.NeXTRuntime); // Use NeXT runtime.
|
||||
|
@ -568,6 +569,7 @@ void PCHWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
|
|||
Record.push_back(LangOpts.getGCMode());
|
||||
Record.push_back(LangOpts.getVisibilityMode());
|
||||
Record.push_back(LangOpts.InstantiationDepth);
|
||||
Record.push_back(LangOpts.OpenCL);
|
||||
Stream.EmitRecord(pch::LANGUAGE_OPTIONS, Record);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue