[PATCH] D68396: [LLD][ELF] Fix stale comment about doing ICF

Russell Gallop via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 06:28:38 PDT 2019


russell.gallop updated this revision to Diff 224333.
russell.gallop added reviewers: peter.smith, MaskRay.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68396/new/

https://reviews.llvm.org/D68396

Files:
  lld/ELF/Driver.cpp


Index: lld/ELF/Driver.cpp
===================================================================
--- lld/ELF/Driver.cpp
+++ lld/ELF/Driver.cpp
@@ -1915,9 +1915,10 @@
   // 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 unused shared objects from dependencies.
   markLive<ELFT>();
   demoteSharedSymbols();
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68396.224333.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191010/8787fd97/attachment.bin>


More information about the llvm-commits mailing list