This is an archive of the discontinued LLVM Phabricator instance.

Port r363962 to COFF: Deduplicate undefined symbol diagnostics
ClosedPublic

Authored by thakis on Jun 21 2019, 5:33 AM.

Details

Summary

lld/coff already deduplicated undefined symbols on a TU level: It would
group all references to a symbol from a single TU. This makes it so that
references from all TUs to a single symbol are grouped together.

Since lld/coff almost did what I thought it did already, the patch is
much smaller than the elf version. The only not local change is that
getSymbolLocations() now returns a vector<string> instead of a string,
so that the undefined symbol reporting code can know how many references
to a symbol exist in a given TU.

Fixes PR42260 for lld/coff.

Diff Detail

Event Timeline

thakis created this revision.Jun 21 2019, 5:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2019, 5:33 AM

ruiu: ping :)

ruiu accepted this revision.Jun 25 2019, 1:30 AM

LGTM

This revision is now accepted and ready to land.Jun 25 2019, 1:30 AM
This revision was automatically updated to reflect the committed changes.