diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-10-11 01:15:30 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-10-11 10:36:19 -0700 |
| commit | 13fb68c064900cee67583e603d8c2acf41770663 (patch) | |
| tree | 537e524b28610d80f2553d1b124f67b4656fb80a /src/codegen/spirv.zig | |
| parent | 5e53203e82bdeb0273160db156050164c5c69267 (diff) | |
| download | zig-13fb68c064900cee67583e603d8c2acf41770663.tar.gz zig-13fb68c064900cee67583e603d8c2acf41770663.zip | |
link: consolidate diagnostics
By organizing linker diagnostics into this struct, it becomes possible
to share more code between linker backends, and more importantly it
becomes possible to pass only the Diag struct to some functions, rather
than passing the entire linker state object in. This makes data
dependencies more obvious, making it easier to rearrange code and to
multithread.
Also fix MachO code abusing an atomic variable. Not only was it using
the wrong atomic operation, it is unnecessary additional state since
the state is already being protected by a mutex.
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions
