Adds a "Discarded" bool to SectionChunk to indicate if the section was
discarded by COMDAT deduplication. The Writer still just checks
isLive().
Fixes PR33446
Paths
| Differential D34288
[COFF] Drop unused comdat sections when GC is turned off ClosedPublic Authored by rnk on Jun 16 2017, 11:20 AM.
Details Summary Adds a "Discarded" bool to SectionChunk to indicate if the section was Fixes PR33446
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 16 2017, 12:55 PM Closed by commit rL305582: [COFF] Drop unused comdat sections when GC is turned off (authored by rnk). · Explain WhyJun 16 2017, 1:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 102867 lld/trunk/COFF/Chunks.h
lld/trunk/COFF/Chunks.cpp
lld/trunk/COFF/InputFiles.cpp
lld/trunk/COFF/SymbolTable.cpp
lld/trunk/test/COFF/Inputs/associative-comdat-2.s
lld/trunk/test/COFF/associative-comdat.s
|