[AArch64] Remove following .inst/after directive from AsmParser diagnostics
authorFangrui Song <i@maskray.me>
Thu, 1 Dec 2022 21:44:03 +0000 (21:44 +0000)
committerFangrui Song <i@maskray.me>
Thu, 1 Dec 2022 21:44:03 +0000 (21:44 +0000)
The part of the diagnostic is not useful because the instruction line is
printed. The new style follows generic code.

llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp

index baec22a..08ef71e 100644 (file)
@@ -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;