mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user