diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-10-08 23:41:39 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-10-09 15:40:59 -0700 |
| commit | c86a334d43c1818ed19eb403f88e61e38bbf20d6 (patch) | |
| tree | 2fdfd31e19d6acb4ee3deb4ee873e10b161cdfb1 /src/Sema.zig | |
| parent | 10cb578e4e16bac44055f277cd06baaf99b159b6 (diff) | |
| download | zig-c86a334d43c1818ed19eb403f88e61e38bbf20d6.tar.gz zig-c86a334d43c1818ed19eb403f88e61e38bbf20d6.zip | |
link.Elf.Object.initAtoms: reduce state access and indirection
The initAtoms function now only uses the `elf_file` parameter for
reporting linker error messages, making it easier to see that the
function has no data dependencies other than the Object struct itself,
making it easier to parallelize or otherwise move that logic around.
Also removed an indirect call via `addExtra` since we already know the
atom's file is the current Object instance. All calls to `Atom.addExtra`
should be audited for similar reasons.
Also removed unjustified use of `inline fn`.
Diffstat (limited to 'src/Sema.zig')
0 files changed, 0 insertions, 0 deletions
