[lld] [LLD] [COFF] Error out if the runtime pseudo relocation function is missing (PR #88573)

via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 13 14:26:22 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 21265f692e4b3b2146b6095cf23122b20e8fa0ed 283a730ef7195bb03c272ec38103fc5c4fda2a92 -- lld/COFF/Writer.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp
index 05a13c2020..7269d15675 100644
--- a/lld/COFF/Writer.cpp
+++ b/lld/COFF/Writer.cpp
@@ -2078,8 +2078,8 @@ void Writer::createRuntimePseudoRelocs() {
     Symbol *relocator = ctx.symtab.findUnderscore(symbolName);
     if (!relocator)
       error("output image has runtime pseudo relocations, but the function " +
-           Twine(symbolName) +
-           " is missing; it is needed for fixing the relocations at runtime");
+            Twine(symbolName) +
+            " is missing; it is needed for fixing the relocations at runtime");
   }
 
   PseudoRelocTableChunk *table = make<PseudoRelocTableChunk>(rels);

``````````

</details>


https://github.com/llvm/llvm-project/pull/88573


More information about the llvm-commits mailing list