convert driver over to use Token::is/isNot APIs. fwew, all done.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42800 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index cbce35a..90412cd 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -791,7 +791,7 @@
// Lex the file, which will read all the macros.
Token Tok;
PP.Lex(Tok);
- assert(Tok.getKind() == tok::eof && "Didn't read entire file!");
+ assert(Tok.is(tok::eof) && "Didn't read entire file!");
// Once we've read this, we're done.
return MainFileID;
@@ -821,7 +821,7 @@
PP.Lex(Tok);
PP.DumpToken(Tok, true);
fprintf(stderr, "\n");
- } while (Tok.getKind() != tok::eof);
+ } while (Tok.isNot(tok::eof));
ClearSourceMgr = true;
break;
}
@@ -831,7 +831,7 @@
PP.EnterSourceFile(MainFileID, 0, true);
do {
PP.Lex(Tok);
- } while (Tok.getKind() != tok::eof);
+ } while (Tok.isNot(tok::eof));
ClearSourceMgr = true;
break;
}