diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-06-23 19:53:32 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-06-23 19:53:32 -0400 |
| commit | d9c1d8fed3e121c4fe91d5aea301574ff763ef95 (patch) | |
| tree | 4c59beda76ccadca05efe4be4064bba7527d208f /src | |
| parent | 6938245fcc1daa6a63bcfcb3ba1092d569efc875 (diff) | |
| download | zig-d9c1d8fed3e121c4fe91d5aea301574ff763ef95.tar.gz zig-d9c1d8fed3e121c4fe91d5aea301574ff763ef95.zip | |
self-hosted: improve handling of anonymous decls
* anonymous decls have automatically generated names and symbols, and
participate in the same memory management as named decls.
* the Ref instruction is deleted
* the DeclRef instruction now takes a `[]const u8` and DeclRefStr takes
an arbitrary string instruction operand.
* introduce a `zir.Decl` type for ZIR Module decls which holds
content_hash and name - fields that are not needed for `zir.Inst`
which are created as part of semantic analysis. This improves the
function signatures of Module.zig and lowers memory usage.
* the Str instruction is now defined to create an anonymous Decl and
reference it.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
