diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-07-31 16:01:02 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-08-01 09:06:56 +0200 |
| commit | 0b15ba8334bc03b59a975e579aac01a6b3fc2109 (patch) | |
| tree | 267ab3306af2b4277b933770de1d3fd696260372 /src/codegen | |
| parent | f023cdad7ca676977d9b5abd3d38677779aab211 (diff) | |
| download | zig-0b15ba8334bc03b59a975e579aac01a6b3fc2109.tar.gz zig-0b15ba8334bc03b59a975e579aac01a6b3fc2109.zip | |
macho: don't allocate Dylib on the heap
instead, immediately transfer ownership to MachO struct. Also, revert
back to try-ok-fail parsing approach of objects, archives, and dylibs.
It seems easier to try and fail than check if the file *is* of a
certain type given that a dylib may be a stub and parsing yaml
twice in a row seems very wasteful.
Hint for the future: if we optimise yaml/TAPI parsing, this approach
may be rethought!
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
