Save/load POSIXThreads flag for PCH

llvm-svn: 80916
This commit is contained in:
Douglas Gregor 2009-09-03 14:36:33 +00:00
parent 0edc7100ba
commit b3286fe685
2 changed files with 2 additions and 0 deletions

View File

@ -1702,6 +1702,7 @@ bool PCHReader::ParseLanguageOptions(
PARSE_LANGOPT(Freestanding);
PARSE_LANGOPT(NoBuiltin);
PARSE_LANGOPT(ThreadsafeStatics);
PARSE_LANGOPT(POSIXThreads);
PARSE_LANGOPT(Blocks);
PARSE_LANGOPT(EmitAllDecls);
PARSE_LANGOPT(MathErrno);

View File

@ -590,6 +590,7 @@ void PCHWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
// Whether static initializers are protected by locks.
Record.push_back(LangOpts.ThreadsafeStatics);
Record.push_back(LangOpts.POSIXThreads);
Record.push_back(LangOpts.Blocks); // block extension to C
Record.push_back(LangOpts.EmitAllDecls); // Emit all declarations, even if
// they are unused.