Switch AsmLexer::Lex to returning a reference to the current token.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-07-28 16:56:42 +00:00
parent 2d4e6d3f12
commit a3c924f83a
3 changed files with 6 additions and 9 deletions

View File

@@ -318,7 +318,7 @@ bool AsmParser::ParseStatement() {
StringRef IDVal = ID.getString();
// Consume the identifier, see what is after it.
switch (Lexer.Lex()) {
switch (Lexer.Lex().getKind()) {
case AsmToken::Colon: {
// identifier ':' -> Label.
Lexer.Lex();
@@ -609,7 +609,7 @@ bool AsmParser::ParseDirectiveSet() {
StringRef Name = Lexer.getTok().getString();
if (Lexer.Lex() != AsmToken::Comma)
if (Lexer.Lex().isNot(AsmToken::Comma))
return TokError("unexpected token in '.set'");
Lexer.Lex();