aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-07-31 16:01:02 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-08-01 09:06:56 +0200
commit0b15ba8334bc03b59a975e579aac01a6b3fc2109 (patch)
tree267ab3306af2b4277b933770de1d3fd696260372 /src/codegen.zig
parentf023cdad7ca676977d9b5abd3d38677779aab211 (diff)
downloadzig-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.zig')
0 files changed, 0 insertions, 0 deletions