aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-04-21 00:06:52 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-04-21 00:06:52 +0200
commit26153ce73a1b9c49bdf89055b8ab7f4d3173f153 (patch)
treecae4284d09b99171caf060e1c0504ee53e4ec890 /src/codegen/c.zig
parent1a1b5ee264d8b2219c34d53cc9602692e6d2ba24 (diff)
downloadzig-26153ce73a1b9c49bdf89055b8ab7f4d3173f153.tar.gz
zig-26153ce73a1b9c49bdf89055b8ab7f4d3173f153.zip
dwarf: clean up allocations in std.dwarf module
While this code probably could do with some love and a redesign, this commit fixes the allocations by making sure we explicitly pass an allocator where required, and we use arenas for temporary or narrowly-scoped objects such as a `Die` (for `Die` in particular, not every `FormValue` will be allocated - we could duplicate, or we can use an arena which is the proposal of this commit).
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions