In the Module class, add a reference to the corresponding AST file.
llvm-svn: 164873
This commit is contained in:
@@ -980,6 +980,9 @@ Module *CompilerInstance::loadModule(SourceLocation ImportLoc,
|
||||
Module = PP->getHeaderSearchInfo().getModuleMap()
|
||||
.findModule((Path[0].first->getName()));
|
||||
}
|
||||
|
||||
if (Module)
|
||||
Module->setASTFile(ModuleFile);
|
||||
|
||||
// Cache the result of this top-level module lookup for later.
|
||||
Known = KnownModules.insert(std::make_pair(Path[0].first, Module)).first;
|
||||
|
||||
Reference in New Issue
Block a user