mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 19:43:29 +00:00
wasm-linker: Only emit name of referenced symbols
This commit is contained in:
parent
6f7a9b3144
commit
f7d4f72fd5
@ -4293,6 +4293,9 @@ fn emitNameSection(wasm: *Wasm, binary_bytes: *std.ArrayList(u8), arena: std.mem
|
||||
|
||||
for (wasm.resolved_symbols.keys()) |sym_loc| {
|
||||
const symbol = sym_loc.getSymbol(wasm).*;
|
||||
if (symbol.isDead()) {
|
||||
continue;
|
||||
}
|
||||
const name = sym_loc.getName(wasm);
|
||||
switch (symbol.tag) {
|
||||
.function => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user