summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-06-29 02:19:42 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-06-29 02:19:42 +0000
commitf3f846162a5d6b5b84ed7d146a29dc175542c2c0 (patch)
tree77f0444b71827ec27ffb22111c45685d1bc4ea6f /clang/lib/Lex/ModuleMap.cpp
parent72c24da063ec5fbebbf5b844cbe700c868bb5dba (diff)
downloadbcm5719-llvm-f3f846162a5d6b5b84ed7d146a29dc175542c2c0.tar.gz
bcm5719-llvm-f3f846162a5d6b5b84ed7d146a29dc175542c2c0.zip
Track the set of module maps read while building a .pcm file and reload those when preprocessing from that .pcm file.
llvm-svn: 306628
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r--clang/lib/Lex/ModuleMap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index 018d59e5e87..40f78ce25ce 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/lib/Lex/ModuleMap.cpp
@@ -2710,7 +2710,8 @@ bool ModuleMap::parseModuleMapFile(const FileEntry *File, bool IsSystem,
// If the module map file wasn't already entered, do so now.
if (ID.isInvalid()) {
- auto FileCharacter = IsSystem ? SrcMgr::C_System : SrcMgr::C_User;
+ auto FileCharacter =
+ IsSystem ? SrcMgr::C_System_ModuleMap : SrcMgr::C_User_ModuleMap;
ID = SourceMgr.createFileID(File, ExternModuleLoc, FileCharacter);
}
OpenPOWER on IntegriCloud