diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-09-29 19:07:37 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-03 12:12:51 -0700 |
| commit | c4b0b7a30bf96590f9849f64a3d86fe2ebbc6a26 (patch) | |
| tree | d7c32643bbdd61d5ebf1d73e7b78ddac553a3818 /src/Module.zig | |
| parent | 9d069d98e3e3773d76bfa4fb07cf4bcbf06e2b67 (diff) | |
| download | zig-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/Module.zig')
0 files changed, 0 insertions, 0 deletions
