aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-12 04:51:35 +0000
committerChris Lattner <sabre@nondot.org>2008-10-12 04:51:35 +0000
commit9e6293d4dfd688429f77ee3b6edba9dfd7ada3a2 (patch)
treebff1a1cff28376b0108136bc1e2230c0cc2aa537 /lib/Lex/PPLexerChange.cpp
parent31f0ecae4b2d4d268d04c562a43d9fbfee96f189 (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.cpp3
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;