[llvm] 5b27878 - COFF: Start error message with lowercase letter (#208636)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 10 00:51:19 PDT 2026
Author: Matt Arsenault
Date: 2026-07-10T09:51:15+02:00
New Revision: 5b27878e5c6b9055436b917868266b7fd05414bb
URL: https://github.com/llvm/llvm-project/commit/5b27878e5c6b9055436b917868266b7fd05414bb
DIFF: https://github.com/llvm/llvm-project/commit/5b27878e5c6b9055436b917868266b7fd05414bb.diff
LOG: COFF: Start error message with lowercase letter (#208636)
Follow style guideline for error messages.
Added:
Modified:
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/Object/coff-invalid.test
Removed:
################################################################################
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 0231206ea1e79..08458f8345209 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -396,7 +396,7 @@ relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const {
const coff_section *Sec = toSec(Ref);
const coff_relocation *begin = getFirstReloc(Sec, Data, base());
if (begin && Sec->VirtualAddress != 0)
- report_fatal_error("Sections with relocations should have an address of 0");
+ report_fatal_error("sections with relocations should have an address of 0");
DataRefImpl Ret;
Ret.p = reinterpret_cast<uintptr_t>(begin);
return relocation_iterator(RelocationRef(Ret, this));
diff --git a/llvm/test/Object/coff-invalid.test b/llvm/test/Object/coff-invalid.test
index da5d687c6e208..d7b0f348b3028 100644
--- a/llvm/test/Object/coff-invalid.test
+++ b/llvm/test/Object/coff-invalid.test
@@ -10,4 +10,4 @@ SECTIONS-NEXT: VirtualAddress: 0x1000000
RUN: not --crash llvm-readobj -r %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
RUN: FileCheck %s
-CHECK: Sections with relocations should have an address of 0
+CHECK: sections with relocations should have an address of 0
More information about the llvm-commits
mailing list