[llvm] 349006b - [MC][ARC][Mips] Replace MCContext::reportFatalError calls with reportError
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 15 00:37:27 PST 2022
Author: Fangrui Song
Date: 2022-01-15T00:37:24-08:00
New Revision: 349006b452382ed1bc88a606e5b8c0e0e1f4f445
URL: https://github.com/llvm/llvm-project/commit/349006b452382ed1bc88a606e5b8c0e0e1f4f445
DIFF: https://github.com/llvm/llvm-project/commit/349006b452382ed1bc88a606e5b8c0e0e1f4f445.diff
LOG: [MC][ARC][Mips] Replace MCContext::reportFatalError calls with reportError
Added:
Modified:
llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
index a3a4d63932c05..3624ade854c00 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
@@ -47,7 +47,7 @@ static void signed_width(unsigned Width, uint64_t Value,
" to " + std::to_string(Max) + ")";
if (Ctx) {
- Ctx->reportFatalError(Fixup.getLoc(), Diagnostic);
+ Ctx->reportError(Fixup.getLoc(), Diagnostic);
} else {
llvm_unreachable(Diagnostic.c_str());
}
@@ -66,7 +66,7 @@ static void unsigned_width(unsigned Width, uint64_t Value,
" (expected an integer in the range 0 to " + std::to_string(Max) + ")";
if (Ctx) {
- Ctx->reportFatalError(Fixup.getLoc(), Diagnostic);
+ Ctx->reportError(Fixup.getLoc(), Diagnostic);
} else {
llvm_unreachable(Diagnostic.c_str());
}
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
index bfe413a152b6e..a3dbe6f84a1e3 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
@@ -197,7 +197,7 @@ static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
Value = (int64_t)Value / 2;
// We now check if Value can be encoded as a 26-bit signed immediate.
if (!isInt<26>(Value)) {
- Ctx.reportFatalError(Fixup.getLoc(), "out of range PC26 fixup");
+ Ctx.reportError(Fixup.getLoc(), "out of range PC26 fixup");
return 0;
}
break;
More information about the llvm-commits
mailing list