From 279a6c3747b10c33f8f425cf4a24e64db015d3e9 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 29 Jan 2012 17:08:11 +0000 Subject: 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 --- clang/lib/Frontend/FrontendActions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Frontend/FrontendActions.cpp') diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index e99e47eb..669fe4a 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; -- cgit v1.1