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/Lex/Preprocessor.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/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } //===----------------------------------------------------------------------===// |