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
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp
index 602d696..e4c85a7 100644
--- a/tools/llvm-mc/AsmParser.cpp
+++ b/tools/llvm-mc/AsmParser.cpp
@@ -318,7 +318,7 @@
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 @@
StringRef Name = Lexer.getTok().getString();
- if (Lexer.Lex() != AsmToken::Comma)
+ if (Lexer.Lex().isNot(AsmToken::Comma))
return TokError("unexpected token in '.set'");
Lexer.Lex();