diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-08-12 11:55:38 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-08-12 12:05:34 +0200 |
| commit | aeaffd42f6d1c8fc92fa7669a579a8e6c46eb641 (patch) | |
| tree | aad5e99e972b3cb4fe3b92aaf355ea86037de334 /src/codegen/c.zig | |
| parent | f2f1bb7cb675fc14dc7754f06329b5780091baaf (diff) | |
| download | zig-aeaffd42f6d1c8fc92fa7669a579a8e6c46eb641.tar.gz zig-aeaffd42f6d1c8fc92fa7669a579a8e6c46eb641.zip | |
x86: fix generating debug info for variables
Add handling for these additional `MCValue`s:
* `.immediate` - lower to `DW.OP.consts` or `DW.OP.constu` depending
on signedness followed by popping off the DWARF stack with
`DW.OP.stack_value`
* `.undef` - lower to `DW.OP.implicit_value`
* `.none` - lower to `DW.OP.lit0` followed by popping off the DWARF
stack with `DW.OP.stack_value`
For any remaining unhandled case, we generate `DW.OP.nop` in order
not to mess up remaining DWARF info.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
