When creating the raw tokens for PTHLexer, make sure the token representing the file to include is checked for being an identifier.

llvm-svn: 59842
This commit is contained in:
Ted Kremenek 2008-11-21 20:51:15 +00:00
parent cb181bb203
commit b6209858cb
1 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void Preprocessor::EnterSourceFile(unsigned FileID,
if (MaxIncludeStackDepth < IncludeMacroStack.size())
MaxIncludeStackDepth = IncludeMacroStack.size();
#if 1
#if 0
Lexer *TheLexer = new Lexer(SourceLocation::getFileLoc(FileID, 0), *this);
EnterSourceFileWithLexer(TheLexer, CurDir);
#else
@ -122,6 +122,9 @@ void Preprocessor::EnterSourceFile(unsigned FileID,
L.ParsingPreprocessorDirective = true;
L.LexIncludeFilename(Tok);
L.ParsingPreprocessorDirective = false;
if (Tok.is(tok::identifier))
Tok.setIdentifierInfo(LookUpIdentifierInfo(Tok));
}
}
}