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 | 9c1b750c59d510e6c9eccb1f37bccc46ccfe6844 (patch) | |
tree | 68b8eb5c79fb10208da19d6e8634f7899af8744c /lib/Lex/PPLexerChange.cpp | |
parent | a11f42f4bca694b9be91350d0a74815f119e3fbf (diff) |
- 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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index 0b2211b107..3b63c9bb09 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/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. |