[lld] [lld][WebAssembly] Add RUNTIME_PATH support to wasm-ld (PR #129050)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 05:17:07 PST 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 c11e3dafcf32b9b5af8ac005af6ca8bc07934a65 1cba4ffdea04eca387bbaa6d4163f296578e549d --extensions h,cpp -- lld/wasm/Config.h lld/wasm/Driver.cpp lld/wasm/SyntheticSections.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/wasm/SyntheticSections.cpp b/lld/wasm/SyntheticSections.cpp
index d009869341..28d814ee65 100644
--- a/lld/wasm/SyntheticSections.cpp
+++ b/lld/wasm/SyntheticSections.cpp
@@ -135,12 +135,12 @@ void DylinkSection::writeBody() {
sub.writeTo(os);
}
if (!ctx.arg.rpath.empty()) {
- SubSection sub(WASM_DYLINK_RUNTIME_PATH);
- writeUleb128(sub.os, ctx.arg.rpath.size(), "num rpath entries");
- for (const auto ref: ctx.arg.rpath) {
- writeStr(sub.os, ref, "rpath entry");
- }
- sub.writeTo(os);
+ SubSection sub(WASM_DYLINK_RUNTIME_PATH);
+ writeUleb128(sub.os, ctx.arg.rpath.size(), "num rpath entries");
+ for (const auto ref : ctx.arg.rpath) {
+ writeStr(sub.os, ref, "rpath entry");
+ }
+ sub.writeTo(os);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/129050
More information about the llvm-commits
mailing list