diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-11-08 16:56:11 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-11-09 00:00:17 +0100 |
| commit | 2ac0ba03a60a133e7ffbab9ad6aaf3b54f6c747b (patch) | |
| tree | bd220f17e27942eb4946faccc6cea891d8a8c78d /src/codegen | |
| parent | 10a28bc4c48cd50882a7a5e5c57fee02b8c34731 (diff) | |
| download | zig-2ac0ba03a60a133e7ffbab9ad6aaf3b54f6c747b.tar.gz zig-2ac0ba03a60a133e7ffbab9ad6aaf3b54f6c747b.zip | |
wasm-linker: ensure symbol fields are set for decls
Previously the symbol tag field would remain `undefined` until it
was set during `flush`. However, the symbol's tag would be observed
earlier than where it was being set. We now set it to the explicit
tag `undefined` so this can be caught during debug. The symbol tag of
a decl will now also be set right after `updateDecl` and `updateFunc`.
Likewise, we now also set the `name` field during atom creation for
decls, as well as set the other fields to the max(u32) to ensure we
get a compiler crash during debug to ensure any misses will be caught.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
