[lld] [llvm] [WebAssembly] Require tags for Wasm EH and Wasm SJLJ to be defined by compiler-rt (PR #159143)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 11:01:13 PDT 2025


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 origin/main HEAD --extensions h,cpp -- lld/wasm/Relocations.cpp llvm/lib/CodeGen/AsmPrinter/WasmException.cpp llvm/lib/CodeGen/AsmPrinter/WasmException.h llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/lld/wasm/Relocations.cpp b/lld/wasm/Relocations.cpp
index 7d06fb977..e2c831e0a 100644
--- a/lld/wasm/Relocations.cpp
+++ b/lld/wasm/Relocations.cpp
@@ -157,7 +157,8 @@ void scanRelocations(InputChunk *chunk) {
         // Certain relocation types can't be used when building PIC output,
         // since they would require absolute symbol addresses at link time.
         if (!sym->isWeak()) {
-          error(toString(file) + ": relocation " + relocTypeToString(reloc.Type) +
+          error(toString(file) + ": relocation " +
+                relocTypeToString(reloc.Type) +
                 " cannot be used against symbol `" + toString(*sym) +
                 "`; recompile with -fPIC");
         }

``````````

</details>


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


More information about the llvm-commits mailing list