diff options
| author | Luuk de Gram <luuk@degram.dev> | 2024-02-09 16:36:09 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2024-02-29 15:24:07 +0100 |
| commit | 5ef832133895fd69fc8378463b86759eaab6913a (patch) | |
| tree | 08bc27cd8f20de4c928ca0bdc411b6c8d59be465 /src/codegen/llvm | |
| parent | c99ef23862573269ae4052bd2236f9803f9e36a2 (diff) | |
| download | zig-5ef832133895fd69fc8378463b86759eaab6913a.tar.gz zig-5ef832133895fd69fc8378463b86759eaab6913a.zip | |
wasm: make symbol indexes a non-exhaustive enum
This introduces some type safety so we cannot accidently give an atom
index as a symbol index. This also means we do not have to store any
optionals and therefore allow for memory optimizations. Lastly, we can
now always simply access the symbol index of an atom, rather than having
to call `getSymbolIndex` as it is easy to forget.
Diffstat (limited to 'src/codegen/llvm')
0 files changed, 0 insertions, 0 deletions
