diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-05-22 19:07:16 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-06-24 08:12:17 +0200 |
| commit | 4d3715d89f97f3f9b6e366bbabe01f9d64ed56cf (patch) | |
| tree | 593ec4b37a1c8f1e1a626076144aa310f7083aa4 /src/codegen/llvm.zig | |
| parent | 8d03e4fc6b361e6cf96865acc05820556ae33863 (diff) | |
| download | zig-4d3715d89f97f3f9b6e366bbabe01f9d64ed56cf.tar.gz zig-4d3715d89f97f3f9b6e366bbabe01f9d64ed56cf.zip | |
wasm-linker: de-duplicate functions+atom sorting
Multiple symbols can point to the same function, this means that when we loop over
the symbol list, we must deduplicate those functions being added twice.
Additionaly, we must also ensure that when we append a new type and set the type
index on a function, we must not do this again for the same function.
This commit also implements sorting of code atoms to ensure their order matches
the order of the function section to ensure the function signature matches
that of the function body.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
