aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-01-05 00:50:58 +0000
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-01-05 05:52:02 +0000
commitb039a8b6155e1eddd9f447ff261d56771c12e038 (patch)
tree0c6c6d44c4e8d6b89a260d61f4472ebc0c9186f5 /src/Compilation.zig
parent136c5a916ed7e421461ac5839cc0e4c289b80f16 (diff)
downloadzig-b039a8b6155e1eddd9f447ff261d56771c12e038.tar.gz
zig-b039a8b6155e1eddd9f447ff261d56771c12e038.zip
compiler: slightly simplify builtin decl memoization
Rather than `Zcu.BuiltinDecl.Memoized` being a struct with fields, it can instead just be an array, indexed by the enum. This allows runtime indexing, avoiding a few now-unnecessary `inline` switch cases.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions