summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-29 17:08:11 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-29 17:08:11 +0000
commit279a6c3747b10c33f8f425cf4a24e64db015d3e9 (patch)
tree1bd2e50168448e6deff7d3299f6c86a52c26e8cf /clang/lib/Frontend/FrontendActions.cpp
parentdd7cae51d8e050162c351a57df1a0d60d68c3ec9 (diff)
downloadbcm5719-llvm-279a6c3747b10c33f8f425cf4a24e64db015d3e9.tar.gz
bcm5719-llvm-279a6c3747b10c33f8f425cf4a24e64db015d3e9.zip
Rework HeaderSearch's interface for getting a module from a name and
for getting the name of the module file, unifying the code for searching for a module with a given name (into lookupModule()) and separating out the mapping to a module file (into getModuleFileName()). No functionality change. llvm-svn: 149197
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index e99e47eb19d..669fe4acb37 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -226,7 +226,8 @@ bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI,
}
// Dig out the module definition.
- Module = HS.getModule(CI.getLangOpts().CurrentModule, /*AllowSearch=*/false);
+ Module = HS.lookupModule(CI.getLangOpts().CurrentModule,
+ /*AllowSearch=*/false);
if (!Module) {
CI.getDiagnostics().Report(diag::err_missing_module)
<< CI.getLangOpts().CurrentModule << Filename;
OpenPOWER on IntegriCloud