aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-06-20 12:45:51 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-06-24 14:45:45 +0200
commitbc78b02c04143b7e1b32aceacdcf44130026a7a7 (patch)
treed0d20c362872c1dea62a50f694e309ca7c685645 /src/Module.zig
parent09b46198ff8d64c9884a0cf13788855b4d4bbe2d (diff)
downloadzig-bc78b02c04143b7e1b32aceacdcf44130026a7a7.tar.gz
zig-bc78b02c04143b7e1b32aceacdcf44130026a7a7.zip
zld: introduce Stub.zig which represents parsed stub file
Instead of trying to fit a stub file into the frame of a Dylib struct, I think it makes more sense to keep them as separate entities with possibly shared interface (which would be added in the future). This cleaned up a lot of logic in Dylib as well as Stub. Also, while here I've made creating actual *Symbols lazy in the sense Dylib and Stub only store hash maps of symbol names that they expose but we defer create and referencing given dylib/stub until link time when a symbol is actually referenced. This should reduce memory usage and speed things up a bit.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions