diff options
author | Rui Ueyama <ruiu@google.com> | 2017-04-19 11:32:27 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-04-19 11:32:27 +0000 |
commit | 29181007dfd5f1b467c4a767abd29388dc211878 (patch) | |
tree | bd643bcd73d20197a1777ee21fa169992425d9df | |
parent | 07c62c11748249612db59fe4c252180d341694a1 (diff) | |
download | bcm5719-llvm-29181007dfd5f1b467c4a767abd29388dc211878.tar.gz bcm5719-llvm-29181007dfd5f1b467c4a767abd29388dc211878.zip |
Update comment.
llvm-svn: 300676
-rw-r--r-- | lld/ELF/Writer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index b4a25e63fa0..310b2c08679 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1217,8 +1217,9 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() { 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>(); }); |