LLD now avoids duplicating functions in the output table, but the Clang logic does not match. To avoid unnecessary variability, this commit cleans up that difference in behaviour.
No functional changes. This is because the Wasm "table" in object files is purely cosmetic, and simply contains provisional values. LLD ignores its contents, and it simply exists to make the object file valid and look roughly right.
(This was the third chunk split out of D41954.)
Maps function index to table element index, no? Only functions can exist in this map right?