summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-20 16:59:19 +0000
committerChris Lattner <sabre@nondot.org>2007-07-20 16:59:19 +0000
commit146762e7a49785c29d1ff84c1733af19bc012b9b (patch)
tree16a4cf596236998520af8c240a4386f53cef66f1 /clang/Driver/clang.cpp
parent77e9de50a112dc3f0bee0d43469db4bde47225c9 (diff)
downloadbcm5719-llvm-146762e7a49785c29d1ff84c1733af19bc012b9b.tar.gz
bcm5719-llvm-146762e7a49785c29d1ff84c1733af19bc012b9b.zip
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. llvm-svn: 40105
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 404baadf48c..ac12ef7a725 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud