aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-09-29 19:07:37 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-10-03 12:12:51 -0700
commitc4b0b7a30bf96590f9849f64a3d86fe2ebbc6a26 (patch)
treed7c32643bbdd61d5ebf1d73e7b78ddac553a3818 /src/codegen.zig
parent9d069d98e3e3773d76bfa4fb07cf4bcbf06e2b67 (diff)
downloadzig-c4b0b7a30bf96590f9849f64a3d86fe2ebbc6a26.tar.gz
zig-c4b0b7a30bf96590f9849f64a3d86fe2ebbc6a26.zip
C backend: render anon decls
Introduce the new mechanism needed to render anonymous decls to C code that the frontend is now using. The current strategy is to collect the set of used anonymous decls into one ArrayHashMap for the entire compilation, and then render them during flush(). In the future this may need to be adjusted for incremental compilation purposes, so that removing a Decl from decl_table means that newly unused anonymous decls are no longer rendered. However, let's do one thing at a time. The only goal of this branch is to stop using Module.Decl objects for unnamed constants.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions