diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-29 17:08:11 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-29 17:08:11 +0000 |
commit | 279a6c3747b10c33f8f425cf4a24e64db015d3e9 (patch) | |
tree | 1bd2e50168448e6deff7d3299f6c86a52c26e8cf /clang/lib/Frontend/FrontendActions.cpp | |
parent | dd7cae51d8e050162c351a57df1a0d60d68c3ec9 (diff) | |
download | bcm5719-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.cpp | 3 |
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; |