aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-29 01:06:04 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-29 01:06:04 +0000
commit43af5132c51d1dc592132488d1d8afe79057897c (patch)
tree26de14612e894cdec7e218b4ece40e64c5b8ad8f /clang/lib/Frontend/CompilerInstance.cpp
parent051b4432429c869a3505eaa74cb3cd4802ae8909 (diff)
downloadllvm-43af5132c51d1dc592132488d1d8afe79057897c.zip
llvm-43af5132c51d1dc592132488d1d8afe79057897c.tar.gz
llvm-43af5132c51d1dc592132488d1d8afe79057897c.tar.bz2
In the Module class, add a reference to the corresponding AST file.
llvm-svn: 164873
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 6de1531..4cc46b8 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -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;