[lld] [llvm] [lld][WebAssembly] Support for the custom-page-sizes WebAssembly proposal (PR #128942)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 14:14:47 PST 2025


================
@@ -999,6 +1002,11 @@ static void createOptionalSymbols() {
     WasmSym::definedTableBase = symtab->addOptionalDataSymbol("__table_base");
   }
 
+  WasmSym::firstPageEnd = symtab->addOptionalDataSymbol("__wasm_first_page_end");
+  if (WasmSym::firstPageEnd) {
+      WasmSym::firstPageEnd->setVA(ctx.arg.pageSize);
+  }
----------------
sbc100 wrote:

No curly braces for sinle-line blocks

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


More information about the llvm-commits mailing list