[lld] r281380 - Fix comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 13 12:56:26 PDT 2016


Author: ruiu
Date: Tue Sep 13 14:56:25 2016
New Revision: 281380

URL: http://llvm.org/viewvc/llvm-project?rev=281380&view=rev
Log:
Fix comments.

Modified:
    lld/trunk/ELF/Driver.cpp

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=281380&r1=281379&r2=281380&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Tue Sep 13 14:56:25 2016
@@ -650,7 +650,7 @@ template <class ELFT> void LinkerDriver:
   for (auto *Arg : Args.filtered(OPT_wrap))
     Symtab.wrap(Arg->getValue());
 
-  // Write the result to the file.
+  // Do size optimizations: garbage collection and identical code folding.
   if (Config->GcSections)
     markLive<ELFT>();
   if (Config->ICF)
@@ -669,5 +669,6 @@ template <class ELFT> void LinkerDriver:
         MS->splitIntoPieces();
     }
 
+  // Write the result to the file.
   writeResult<ELFT>();
 }




More information about the llvm-commits mailing list