[LLD][ELF] Fix stale comments about doing ICF

Differential Revision: https://reviews.llvm.org/D68396

llvm-svn: 374362
This commit is contained in:
Russell Gallop 2019-10-10 14:50:02 +00:00
parent a5e65c1cf7
commit 6d6ec1b869
1 changed files with 3 additions and 2 deletions

View File

@ -1915,9 +1915,10 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
// Replace common symbols with regular symbols.
replaceCommonSymbols();
// Do size optimizations: garbage collection, merging of SHF_MERGE sections
// and identical code folding.
// Split SHF_MERGE and .eh_frame sections into pieces in preparation for garbage collection.
splitSections<ELFT>();
// Garbage collection and removal of shared symbols from unused shared objects.
markLive<ELFT>();
demoteSharedSymbols();