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/Lex/Preprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Lex/Preprocessor.cpp') diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 5dda96451f8..05cbffdfd12 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -383,7 +383,7 @@ Module *Preprocessor::getCurrentModule() { if (getLangOptions().CurrentModule.empty()) return 0; - return getHeaderSearchInfo().getModule(getLangOptions().CurrentModule); + return getHeaderSearchInfo().lookupModule(getLangOptions().CurrentModule); } //===----------------------------------------------------------------------===// -- cgit v1.2.3