diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-12 04:51:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-12 04:51:35 +0000 |
commit | 9e6293d4dfd688429f77ee3b6edba9dfd7ada3a2 (patch) | |
tree | bff1a1cff28376b0108136bc1e2230c0cc2aa537 /lib/Lex/PPLexerChange.cpp | |
parent | 31f0ecae4b2d4d268d04c562a43d9fbfee96f189 (diff) |
Change FormTokenWithChars to take the token kind to form, since all clients
were setting a kind and then forming it. This is just a minor API cleanup,
no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index ccaddf52ed..b7e9132baa 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -207,8 +207,7 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { Result.startToken(); CurLexer->BufferPtr = EndPos; - CurLexer->FormTokenWithChars(Result, EndPos); - Result.setKind(tok::eof); + CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); // We're done with the #included file. delete CurLexer; |