diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-09 18:03:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-09 18:03:42 +0000 |
commit | 057aaf6304a5f59bcafa7b46c19625bb779af1d1 (patch) | |
tree | 7447ed25da08adb6050952f6b7bf26ba616cd169 /Driver/clang.cpp | |
parent | 22f6bbcafa8871f4f20c4402d9cbc5c024fee99a (diff) |
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
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 cbce35a958..90412cd026 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -791,7 +791,7 @@ static unsigned InitializePreprocessor(Preprocessor &PP, // 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 @@ static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID, 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 @@ static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID, PP.EnterSourceFile(MainFileID, 0, true); do { PP.Lex(Tok); - } while (Tok.getKind() != tok::eof); + } while (Tok.isNot(tok::eof)); ClearSourceMgr = true; break; } |