diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-12-18 10:30:12 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-12-18 10:30:12 +0000 |
commit | eb70f4e9cc9a4dc3dd57b032fb858d56b4b64a0e (patch) | |
tree | f425d8caee32452b03e4383a3e04eb122db12984 /lib/Lex/PPLexerChange.cpp | |
parent | 1decee3f9a78309765b972e5ba4e69fd6dcfd8e7 (diff) |
Replace SM.getFileEntryForID(Lexer->getFileID()) with Lexer->getFileEntry().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index d43db1c34c..7c0d55e1f0 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -301,8 +301,7 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { if (const IdentifierInfo *ControllingMacro = CurPPLexer->MIOpt.GetControllingMacroAtEndOfFile()) { // Okay, this has a controlling macro, remember in HeaderFileInfo. - if (const FileEntry *FE = - SourceMgr.getFileEntryForID(CurPPLexer->getFileID())) { + if (const FileEntry *FE = CurPPLexer->getFileEntry()) { HeaderInfo.SetFileControllingMacro(FE, ControllingMacro); if (MacroInfo *MI = getMacroInfo(const_cast<IdentifierInfo*>(ControllingMacro))) { |