[lld] [llvm] [lld][WebAssembly] Add missing relocation types to the --compress-relocations path (PR #144578)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 19 08:21:43 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 HEAD~1 HEAD --extensions cpp,h -- lld/wasm/InputChunks.cpp llvm/include/llvm/BinaryFormat/Wasm.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index 037804da5..cf90a43d0 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -453,9 +453,7 @@ struct WasmRelocation {
   uint64_t Offset; // Offset from the start of the section.
   int64_t Addend;  // A value to add to the symbol.
 
-  WasmRelocType getType() const {
-    return static_cast<WasmRelocType>(Type);
-  }
+  WasmRelocType getType() const { return static_cast<WasmRelocType>(Type); }
 };
 
 struct WasmInitFunc {

``````````

</details>


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


More information about the llvm-commits mailing list