[lld] r325809 - [ELF] - Rewrote outdated comment. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 09:52:43 PST 2018
Author: grimar
Date: Thu Feb 22 09:52:43 2018
New Revision: 325809
URL: http://llvm.org/viewvc/llvm-project?rev=325809&view=rev
Log:
[ELF] - Rewrote outdated comment. NFC.
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=325809&r1=325808&r2=325809&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Feb 22 09:52:43 2018
@@ -1390,8 +1390,8 @@ static void removeUnusedSyntheticSection
llvm::erase_if(ISD->Sections,
[=](InputSection *IS) { return IS == SS; });
- // If there are no other alive sections or commands left in the output
- // section description, we remove it from the output.
+ // If there are no other alive input sections left, we remove output
+ // section from the output.
if (getInputSections(OS).empty())
OS->Live = false;
}
More information about the llvm-commits
mailing list