[lld] [lld][WebAssembly] Allow linker-synthetic symbols to be undefine when… (PR #153537)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 13 23:07:19 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 -- lld/wasm/Driver.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 64ff9a95b..b7f68d668 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -1009,7 +1009,8 @@ static void createOptionalSymbols() {
   if (!ctx.isPic) {
     ctx.sym.definedMemoryBase = symtab->addOptionalDataSymbol("__memory_base");
     ctx.sym.definedTableBase = symtab->addOptionalDataSymbol("__table_base");
-    ctx.sym.firstPageEnd = symtab->addOptionalDataSymbol("__wasm_first_page_end");
+    ctx.sym.firstPageEnd =
+        symtab->addOptionalDataSymbol("__wasm_first_page_end");
     if (ctx.sym.firstPageEnd)
       ctx.sym.firstPageEnd->setVA(ctx.arg.pageSize);
   }

``````````

</details>


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


More information about the llvm-commits mailing list