Skip to content

Commit

Permalink
[AArch64] Remove following .inst/after directive from AsmParser diagn…
Browse files Browse the repository at this point in the history
…ostics

The part of the diagnostic is not useful because the instruction line is
printed. The new style follows generic code.
  • Loading branch information
MaskRay committed Dec 1, 2022
1 parent 3b259de commit 3c2f9da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Expand Up @@ -7044,8 +7044,7 @@ bool AArch64AsmParser::parseDirectiveInst(SMLoc Loc) {
// ::= .tlsdesccall symbol
bool AArch64AsmParser::parseDirectiveTLSDescCall(SMLoc L) {
StringRef Name;
if (check(getParser().parseIdentifier(Name), L,
"expected symbol after directive") ||
if (check(getParser().parseIdentifier(Name), L, "expected symbol") ||
parseToken(AsmToken::EndOfStatement))
return true;

Expand Down

0 comments on commit 3c2f9da

Please sign in to comment.