llvm-project
34b2de9e - [lld][MachO] Deduplicate branch-extension thunks for ICF-folded symbols (#185396)

Commit
41 days ago
[lld][MachO] Deduplicate branch-extension thunks for ICF-folded symbols (#185396) After ICF, multiple symbols may resolve to the same address but remain as distinct Symbol pointers. When used as keys in thunkMap, this caused redundant branch-extension thunks to be created for the same target. Fix this by providing a custom DenseMapInfo for thunkMap that hashes and compares Defined symbols by (isec, value) instead of pointer identity.
Author
Parents
Loading