wasm: Fix unreachable paths

When the last instruction is a debug instruction, the type of it is void.
Similarly for 'noreturn' emit an 'unreachable' instruction to tell the wasm-validator
the path cannot be reached.

Also respect the '--strip' flag in the self-hosted wasm linker and not emit a 'name' section
when the flag is set to `true`.
be08d2bdbdLuuk de Gram committed on 4/19/2022, 5:58:49 PMparent2193f7c
3 files changedLine totals unavailable