From 220af3f446b9d02aeb3e3553c4744c30aaf4e2b8 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 10 Jan 2025 19:51:21 -0800 Subject: [PATCH] wasm-linker: add updateFunc log --- src/link/Wasm.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig index 0914a7959b..8e5bf00131 100644 --- a/src/link/Wasm.zig +++ b/src/link/Wasm.zig @@ -3069,6 +3069,10 @@ pub fn updateFunc(wasm: *Wasm, pt: Zcu.PerThread, func_index: InternPool.Index, try wasm.functions.ensureUnusedCapacity(gpa, 1); try wasm.zcu_funcs.ensureUnusedCapacity(gpa, 1); + const ip = &zcu.intern_pool; + const owner_nav = zcu.funcInfo(func_index).owner_nav; + log.debug("updateFunc {}", .{ip.getNav(owner_nav).fqn.fmt(ip)}); + const zds: ZcuDataStarts = .init(wasm); // This converts AIR to MIR but does not yet lower to wasm code.