# dwarf: emit debug info for local variables on x86_64 · gitcafe/zig

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

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

Visibility: public

Requested revision: 364e53f3bf6b5aa4e5e7eba5d790c5b957007067

Requested commit: 364e53f3bf6b5aa4e5e7eba5d790c5b957007067

Commit: 364e53f3bf6b5aa4e5e7eba5d790c5b957007067

Tree: 2c6ce39c91c9f1c070c51a0b3beadb45ee29766d

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
dwarf: emit debug info for local variables on x86_64

Add support for emitting debug info for local variables within a subprogram.
This required moving bits responsible for populating the debug info back to
`CodeGen` from `Emit` as we require the operand to be resolved at callsite
plus we need to know its type. Without enforcing this, we could end up
with a `dead` mcv.

```

## Parents

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

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