return TokError("expected identifier in directive");
MCSymbol *Symbol = getContext().getOrCreateSymbol(Name);
- if (parseToken(AsmToken::Comma, "expected ','"))
+ if (getParser().parseComma())
return true;
unsigned LocalMemorySize = AMDGPU::IsaInfo::getLocalMemorySize(&getSTI());
Tag = CE->getValue();
}
- if (Parser.parseToken(AsmToken::Comma, "comma expected"))
+ if (Parser.parseComma())
return true;
StringRef StringValue = "";
}
if (Tag == ARMBuildAttrs::compatibility) {
- if (Parser.parseToken(AsmToken::Comma, "comma expected"))
+ if (Parser.parseComma())
return true;
}
int FPReg = tryParseRegister();
if (check(FPReg == -1, FPRegLoc, "frame pointer register expected") ||
- Parser.parseToken(AsmToken::Comma, "comma expected"))
+ Parser.parseComma())
return true;
// Parse spreg
StackOffset = CE->getValue();
- if (Parser.parseToken(AsmToken::Comma, "expected comma"))
+ if (Parser.parseComma())
return true;
SmallVector<uint8_t, 16> Opcodes;
StringRef Name;
if (check(Parser.parseIdentifier(Name),
"expected identifier after '.thumb_set'") ||
- parseToken(AsmToken::Comma, "expected comma after name '" + Name + "'"))
+ Parser.parseComma())
return true;
MCSymbol *Sym;
@ CHECK: ^
.eabi_attribute 0
-@ CHECK: error: comma expected
+@ CHECK: :[[#@LINE-1]]:19: error: expected comma
@ CHECK: .eabi_attribute 0
@ CHECK: ^
.eabi_attribute Tag_compatibility, 1
-@ CHECK: error: comma expected
+@ CHECK: :[[#@LINE-1]]:45: error: expected comma
@ CHECK: .eabi_attribute Tag_compatibility, 1
@ CHECK: ^