From 3c2f9daf2d3c0f234008f7f65a31deb5c75b2201 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 1 Dec 2022 21:44:03 +0000 Subject: [PATCH] [AArch64] Remove following .inst/after directive from AsmParser diagnostics 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp index baec22a..08ef71e 100644 --- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp +++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp @@ -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; -- 2.7.4