# stage2: separate work queue item for functions than decls · gitcafe/zig

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

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

Visibility: public

Requested revision: fe14e339458a578657f3890f00d654a15c84422c

Requested commit: fe14e339458a578657f3890f00d654a15c84422c

Commit: fe14e339458a578657f3890f00d654a15c84422c

Tree: 0b53177c9f8b84dbfbd67308ae06784f87387ee2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: separate work queue item for functions than decls

Previously we had codegen_decl for both constant values as well as
function bodies. A recent commit updated the linker backends to add
updateFunc as a separate function than updateDecl, and now this commit
does the same with work queue tasks.

The frontend now distinguishes between function pointers and function
bodies.

```

## Parents

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

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