From e6d8c1cb3841ab8229f9f49f63cab738d084dfa2 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 16 Jun 2017 22:45:13 +0000 Subject: [PATCH] Update a comment. llvm-svn: 305601 --- lld/ELF/LinkerScript.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index f5a59f0c8c4d..8c7a1e7ca010 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -1044,8 +1044,9 @@ template void OutputSectionCommand::writeTo(uint8_t *Buf) { 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(), -- GitLab