[llvm] 44a7358 - RISCVELFObjectWriter: de-capitalize some error messages
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 21:50:24 PST 2023
Author: Fangrui Song
Date: 2023-03-06T21:50:19-08:00
New Revision: 44a735890cb1c263ea89f5f029be8580162abf1e
URL: https://github.com/llvm/llvm-project/commit/44a735890cb1c263ea89f5f029be8580162abf1e
DIFF: https://github.com/llvm/llvm-project/commit/44a735890cb1c263ea89f5f029be8580162abf1e.diff
LOG: RISCVELFObjectWriter: de-capitalize some error messages
These are unfortunately untested.
I'll add some tests in a subsequent change.
Added:
Modified:
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
index ee88fe7fe858a..4cc60dfeb95c6 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
@@ -58,7 +58,7 @@ unsigned RISCVELFObjectWriter::getRelocType(MCContext &Ctx,
if (IsPCRel) {
switch (Kind) {
default:
- Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type");
+ Ctx.reportError(Fixup.getLoc(), "unsupported relocation type");
return ELF::R_RISCV_NONE;
case FK_Data_4:
case FK_PCRel_4:
@@ -110,7 +110,7 @@ unsigned RISCVELFObjectWriter::getRelocType(MCContext &Ctx,
switch (Kind) {
default:
- Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type");
+ Ctx.reportError(Fixup.getLoc(), "unsupported relocation type");
return ELF::R_RISCV_NONE;
case FK_Data_1:
Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported");
More information about the llvm-commits
mailing list