[lld] r305601 - Update a comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 16 15:45:13 PDT 2017


Author: ruiu
Date: Fri Jun 16 17:45:13 2017
New Revision: 305601

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

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=305601&r1=305600&r2=305601&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Jun 16 17:45:13 2017
@@ -1044,8 +1044,9 @@ template <class ELFT> void OutputSection
 
   Sec->Loc = Buf;
 
-  // We may have already rendered compressed content when using
-  // -compress-debug-sections option. Write it together with header.
+  // If -compress-debug-section is specified and if this is a debug seciton,
+  // we've already compressed section contents. If that's the case,
+  // just write it down.
   if (!Sec->CompressedData.empty()) {
     memcpy(Buf, Sec->ZDebugHeader.data(), Sec->ZDebugHeader.size());
     memcpy(Buf + Sec->ZDebugHeader.size(), Sec->CompressedData.data(),




More information about the llvm-commits mailing list