zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 220af3f446b9d02aeb3e3553c4744c30aaf4e2b8 (tree)
parent 7b255235d60cb2891ec628506f4d5e8ca811a865
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 10 Jan 2025 19:51:21 -0800

wasm-linker: add updateFunc log

Diffstat:
Msrc/link/Wasm.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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.