llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-x86

Author: Matt Arsenault (arsenm)

<details>
<summary>Changes</summary>

Follow style guideline for error messages.

---
Full diff: https://github.com/llvm/llvm-project/pull/208636.diff


2 Files Affected:

- (modified) llvm/lib/Object/COFFObjectFile.cpp (+1-1) 
- (modified) llvm/test/Object/coff-invalid.test (+1-1) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/208636
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to