summaryrefslogtreecommitdiffstats
path: root/clang/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
commitb11c3233d8ca4be0f567eda8e2f3260b477dcba4 (patch)
treef1be9d141dc9e3a7fd6e11dcec11e07928b11f23 /clang/lib/Lex/PPLexerChange.cpp
parent99e7d23455439dcf4aceada91513ef57b844190b (diff)
downloadbcm5719-llvm-b11c3233d8ca4be0f567eda8e2f3260b477dcba4.tar.gz
bcm5719-llvm-b11c3233d8ca4be0f567eda8e2f3260b477dcba4.zip
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. llvm-svn: 57404
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index ccaddf52ed5..b7e9132baab 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud