[lld] r300676 - Update comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 04:32:27 PDT 2017


Author: ruiu
Date: Wed Apr 19 06:32:27 2017
New Revision: 300676

URL: http://llvm.org/viewvc/llvm-project?rev=300676&view=rev
Log:
Update comment.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=300676&r1=300675&r2=300676&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Apr 19 06:32:27 2017
@@ -1217,8 +1217,9 @@ template <class ELFT> void Writer<ELFT>:
   for (OutputSection *Sec : OutputSections)
     Sec->finalize<ELFT>();
 
-  // Some sections may require compression. That happens for
-  // debug sections when --compress-debug-sections option used.
+  // If -compressed-debug-sections is specified, we need to compress
+  // .debug_* sections. Do it right now because it changes the size of
+  // output sections.
   parallelForEach(OutputSections.begin(), OutputSections.end(),
                   [](OutputSection *S) { S->maybeCompress<ELFT>(); });
 




More information about the llvm-commits mailing list