aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-06-23 19:53:32 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-06-23 19:53:32 -0400
commitd9c1d8fed3e121c4fe91d5aea301574ff763ef95 (patch)
tree4c59beda76ccadca05efe4be4064bba7527d208f /src
parent6938245fcc1daa6a63bcfcb3ba1092d569efc875 (diff)
downloadzig-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