[llvm] [MC][WebAssembly] Fix importing tables with limits (PR #172992)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 21 19:19:56 PST 2025
================
@@ -1849,6 +1850,15 @@ uint64_t WasmObjectWriter::writeOneObject(MCAssembler &Asm,
HandleReloc(RelEntry);
for (const WasmRelocationEntry &RelEntry : DataRelocations)
HandleReloc(RelEntry);
+
+ // Update minimum size of `__indirect_function_table` table.
+ auto It = llvm::find_if(Imports, [](const wasm::WasmImport &I) {
+ return I.Field == "__indirect_function_table";
+ });
----------------
sbc100 wrote:
We already lookup this symbol in other places in this file with `lookupSymbol("__indirect_function_table")`. Can we combine this somehow and avoid this `lvm::find_if`?
https://github.com/llvm/llvm-project/pull/172992
More information about the llvm-commits
mailing list