summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-12-18 10:30:12 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-12-18 10:30:12 +0000
commit652246108005857512e1b9b38b752ea564e97811 (patch)
tree47b3551f4553bffecb8fae5a645d39fd67383419 /clang/lib/Lex/PPLexerChange.cpp
parent6f531ec0a2510d07fe592e2a7698733bbb45f519 (diff)
downloadbcm5719-llvm-652246108005857512e1b9b38b752ea564e97811.tar.gz
bcm5719-llvm-652246108005857512e1b9b38b752ea564e97811.zip
Replace SM.getFileEntryForID(Lexer->getFileID()) with Lexer->getFileEntry().
llvm-svn: 255993
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index d43db1c34cb..7c0d55e1f03 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/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))) {
OpenPOWER on IntegriCloud