# wasm-linker: deduplicate aliased functions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6f7a9b31443debf3e6d2be645261372de1bc5877)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6f7a9b31443debf3e6d2be645261372de1bc5877

Requested commit: 6f7a9b31443debf3e6d2be645261372de1bc5877

Commit: 6f7a9b31443debf3e6d2be645261372de1bc5877

Tree: 4414529acf2871e3083cdc533c3c1e35bf5da175

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: deduplicate aliased functions

When multiple symbols point to the same function, we ensure any
other symbol other than the original will be discarded and point
to the original instead. This prevents emitting the same function
code more than once.

```

## Parents

- [8856ba75059f74a326d1f8d3af40a30c5a3ac1ed](https://git.cafe/gitcafe/zig/commit/8856ba75059f74a326d1f8d3af40a30c5a3ac1ed?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6f7a9b31443debf3e6d2be645261372de1bc5877?format=markdown)
