# wasm: Split funcgen and declgen · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1fe1e4d29207de8c972fcc1b61266fbaddb07d63)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1fe1e4d29207de8c972fcc1b61266fbaddb07d63

Requested commit: 1fe1e4d29207de8c972fcc1b61266fbaddb07d63

Commit: 1fe1e4d29207de8c972fcc1b61266fbaddb07d63

Tree: 1f5b8756eab0056a2f6c3cdf05a7bdbfc977fc3b

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
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.

```

## Parents

- [28acbdb02ff934fed3363a580128575e7d8c92ee](https://git.cafe/gitcafe/zig/commit/28acbdb02ff934fed3363a580128575e7d8c92ee?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1fe1e4d29207de8c972fcc1b61266fbaddb07d63?format=markdown)
