diff options
| author | Luuk de Gram <luuk@degram.dev> | 2024-01-21 12:06:33 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2024-02-29 15:23:03 +0100 |
| commit | 0a030d6598a42eae6f6af829e03bba053336b51c (patch) | |
| tree | dc18ba8e2eebf6b1b13c5a17bf317e7aa792b928 /src/codegen/llvm.zig | |
| parent | 94f3a18c88eaee9a36a08a1b00c9df0584a01b05 (diff) | |
| download | zig-0a030d6598a42eae6f6af829e03bba053336b51c.tar.gz zig-0a030d6598a42eae6f6af829e03bba053336b51c.zip | |
wasm: Use `File.Index` for symbol locations
Rather than using the optional, we now directly use `File.Index` which
can already represent an unknown file due to its `.null` value. This
means we do not pay for the memory cost.
This type of index is now used for:
- SymbolLoc
- Key of the functions map
- InitFunc
Now we can simply pass things like atom.file, object.file, loc.file etc
whenever we need to access its representing object file which makes it
a lot easier.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
