wasm: Split funcgen and declgen

This allows us to get rid of unused fields when generating code for non-function decls.
We can now create seperate instances of `DeclGen` which in turn can then be used
to generate the code for a constant.
Besides those reasons, it will be much easier to switch to the generic purpose `codegen.zig` that any
backend should use. Allowing us to deduplicate this code.
1fe1e4d292Luuk de Gram committed on 1/19/2022, 7:01:23 PMparent28acbdb
3 files changedLine totals unavailable