[llvm] 3c2f9da - [AArch64] Remove following .inst/after directive from AsmParser diagnostics
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 1 13:44:08 PST 2022
Author: Fangrui Song
Date: 2022-12-01T21:44:03Z
New Revision: 3c2f9daf2d3c0f234008f7f65a31deb5c75b2201
URL: https://github.com/llvm/llvm-project/commit/3c2f9daf2d3c0f234008f7f65a31deb5c75b2201
DIFF: https://github.com/llvm/llvm-project/commit/3c2f9daf2d3c0f234008f7f65a31deb5c75b2201.diff
LOG: [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.
Added:
Modified:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index baec22ad48d96..08ef71e3428f3 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;
More information about the llvm-commits
mailing list