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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149197 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 5dda964..05cbffd 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -383,7 +383,7 @@
if (getLangOptions().CurrentModule.empty())
return 0;
- return getHeaderSearchInfo().getModule(getLangOptions().CurrentModule);
+ return getHeaderSearchInfo().lookupModule(getLangOptions().CurrentModule);
}
//===----------------------------------------------------------------------===//