diff options
| author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-22 08:23:18 +0000 |
|---|---|---|
| committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-22 08:23:18 +0000 |
| commit | ea4f7c776194c96f8ece1456bc22102c6cbc9a33 (patch) | |
| tree | d1053edb8868105b02ca8fdf61a21462e03a8501 /clang/lib/Frontend/CacheTokens.cpp | |
| parent | fe86bc527a0d50b653d2df8fa8b091a5397d3a9d (diff) | |
| download | bcm5719-llvm-ea4f7c776194c96f8ece1456bc22102c6cbc9a33.tar.gz bcm5719-llvm-ea4f7c776194c96f8ece1456bc22102c6cbc9a33.zip | |
Introduced raw_identifier token kind.
llvm-svn: 122394
Diffstat (limited to 'clang/lib/Frontend/CacheTokens.cpp')
| -rw-r--r-- | clang/lib/Frontend/CacheTokens.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Frontend/CacheTokens.cpp b/clang/lib/Frontend/CacheTokens.cpp index aae572cb980..ee3fdd83433 100644 --- a/clang/lib/Frontend/CacheTokens.cpp +++ b/clang/lib/Frontend/CacheTokens.cpp @@ -300,7 +300,7 @@ PTHEntry PTHWriter::LexTokens(Lexer& L) { ParsingPreprocessorDirective = false; } - if (Tok.is(tok::identifier)) { + if (Tok.is(tok::raw_identifier)) { PP.LookUpIdentifierInfo(Tok); EmitToken(Tok); continue; @@ -320,13 +320,13 @@ PTHEntry PTHWriter::LexTokens(Lexer& L) { // this case, discard both tokens. if (NextTok.isAtStartOfLine()) goto NextToken; - + // The token is the start of a directive. Emit it. EmitToken(Tok); Tok = NextTok; // Did we see 'include'/'import'/'include_next'? - if (Tok.isNot(tok::identifier)) { + if (Tok.isNot(tok::raw_identifier)) { EmitToken(Tok); continue; } @@ -353,7 +353,7 @@ PTHEntry PTHWriter::LexTokens(Lexer& L) { L.LexIncludeFilename(Tok); L.setParsingPreprocessorDirective(false); assert(!Tok.isAtStartOfLine()); - if (Tok.is(tok::identifier)) + if (Tok.is(tok::raw_identifier)) PP.LookUpIdentifierInfo(Tok); break; |

