diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-20 16:59:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-20 16:59:19 +0000 |
commit | d217773f106856a11879ec79dc468efefaf2ee75 (patch) | |
tree | b287f41254ad8f377f504fc9645404a7772084d0 /Driver/clang.cpp | |
parent | 25bdb51276d3bfc180a68688082071505a00ed27 (diff) |
At one point there were going to be lexer and parser tokens.
Since that point is now long gone, we should rename LexerToken to
Token, as it is the only kind of token we have.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 404baadf48..ac12ef7a72 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -754,7 +754,7 @@ static unsigned InitializePreprocessor(Preprocessor &PP, PP.EnterSourceFile(FileID, 0); // Lex the file, which will read all the macros. - LexerToken Tok; + Token Tok; PP.Lex(Tok); assert(Tok.getKind() == tok::eof && "Didn't read entire file!"); @@ -775,7 +775,7 @@ static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID, fprintf(stderr, "Unexpected program action!\n"); return; case DumpTokens: { // Token dump mode. - LexerToken Tok; + Token Tok; // Start parsing the specified input file. PP.EnterSourceFile(MainFileID, 0, true); do { @@ -786,7 +786,7 @@ static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID, break; } case RunPreprocessorOnly: { // Just lex as fast as we can, no output. - LexerToken Tok; + Token Tok; // Start parsing the specified input file. PP.EnterSourceFile(MainFileID, 0, true); do { |