summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-18 00:12:49 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-18 00:12:49 +0000
commit68ef9fc6ae998471415ee01efc371e5acd2573cd (patch)
treef5a43f85a58ff1a8fa9438e2ac03299ed983f841 /clang/lib/Lex/PPLexerChange.cpp
parent180afd2c5547f277ee91c9388d7b030ff7a97a24 (diff)
downloadbcm5719-llvm-68ef9fc6ae998471415ee01efc371e5acd2573cd.tar.gz
bcm5719-llvm-68ef9fc6ae998471415ee01efc371e5acd2573cd.zip
- Add 'CurPPLexer' to Preprocessor to keep track of the current
PreprocessorLexer, which will either be a 'Lexer' or 'PTHLexer'. - Added stub field 'CurPTHLexer' to keep track of the current PTHLexer. - Modified IncludeStackInfo to track both the current PTHLexer and current PreprocessorLexer. llvm-svn: 59472
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index 0b2211b107f..3b63c9bb094 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/lib/Lex/PPLexerChange.cpp
@@ -89,6 +89,7 @@ void Preprocessor::EnterSourceFileWithLexer(Lexer *TheLexer,
PushIncludeMacroStack();
CurLexer.reset(TheLexer);
+ CurPPLexer = TheLexer;
CurDirLookup = CurDir;
// Notify the client, if desired, that we are in a new source file.
OpenPOWER on IntegriCloud