diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-18 00:12:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-18 00:12:49 +0000 |
commit | 68ef9fc6ae998471415ee01efc371e5acd2573cd (patch) | |
tree | f5a43f85a58ff1a8fa9438e2ac03299ed983f841 /clang/lib/Lex/PPLexerChange.cpp | |
parent | 180afd2c5547f277ee91c9388d7b030ff7a97a24 (diff) | |
download | bcm5719-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.cpp | 1 |
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. |