diff options
author | Ben Langmuir <blangmuir@apple.com> | 2015-02-12 21:51:31 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2015-02-12 21:51:31 +0000 |
commit | 18dd78a8fd7077398e6c89cc0bee6c144e936408 (patch) | |
tree | 754f7f0585fff5cdc6a3dfe50d811153c2ea4a5a /clang/lib/Serialization/ASTWriter.cpp | |
parent | 39e988c63cf1cb8f68cb6d7e9c70e13e4b6050bc (diff) | |
download | bcm5719-llvm-18dd78a8fd7077398e6c89cc0bee6c144e936408.tar.gz bcm5719-llvm-18dd78a8fd7077398e6c89cc0bee6c144e936408.zip |
Mangle the IsSystem bit into the .pcm file name
When mangling the module map path into a .pcm file name, also mangle the
IsSystem bit, which can also depend on the header search paths. For
example, the user may change from -I to -isystem. This can affect
diagnostics in the importing TU.
llvm-svn: 228966
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index aad4305d8c5..2526c638d30 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -1215,6 +1215,7 @@ void ASTWriter::WriteControlBlock(Preprocessor &PP, ASTContext &Context, Record.push_back(0); } + Record.push_back(WritingModule->IsSystem); Stream.EmitRecord(MODULE_MAP_FILE, Record); } |