Serialize `pragma ms_struct` state.
authorNico Weber <nicolasweber@gmx.de>
Wed, 2 Mar 2016 23:22:00 +0000 (23:22 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 2 Mar 2016 23:22:00 +0000 (23:22 +0000)
commit779355f96bd5e6bff40bae824f3f13ccbb30d018
treef8303aa2cdd6b397592c67d67b5244ce181a9628
parent8226fc482999342e899db0d046ad044ba2ada136
Serialize `pragma ms_struct` state.

pragma ms_struct has an effect on struct decls, and the effect is serialized
correctly already.  But the "is ms_struct currently on" state wasn't before
this change.

This uses the same approach as `pragma clang optimize`: When writing a module,
the state isn't serialized, only when writing a pch file.

llvm-svn: 262539
clang/include/clang/Basic/PragmaKinds.h
clang/include/clang/Sema/Sema.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ASTWriter.h
clang/lib/Parse/ParsePragma.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/test/PCH/pragma-ms_struct.cpp [new file with mode: 0644]