[llvm] [MC,ELF] Use loc from the directive for `.abort` (PR #99648)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 06:59:02 PDT 2024
================
@@ -5095,21 +5095,16 @@ bool AsmParser::parseDirectiveComm(bool IsLocal) {
/// parseDirectiveAbort
/// ::= .abort [... message ...]
-bool AsmParser::parseDirectiveAbort() {
- // FIXME: Use loc from directive.
- SMLoc Loc = getLexer().getLoc();
-
+bool AsmParser::parseDirectiveAbort(SMLoc DirectiveLoc) {
StringRef Str = parseStringToEndOfStatement();
if (parseEOL())
return true;
if (Str.empty())
- return Error(Loc, ".abort detected. Assembly stopping.");
- else
- return Error(Loc, ".abort '" + Str + "' detected. Assembly stopping.");
- // FIXME: Actually abort assembly here.
----------------
s-barannikov wrote:
This FIXME hasn't actually been fixed
https://github.com/llvm/llvm-project/pull/99648
More information about the llvm-commits
mailing list