[lld] r362108 - [ELF] Delete dead SHT_NOBITS->SHT_PROGBITS code after r358981
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 08:52:12 PDT 2019
Author: maskray
Date: Thu May 30 08:52:11 2019
New Revision: 362108
URL: http://llvm.org/viewvc/llvm-project?rev=362108&view=rev
Log:
[ELF] Delete dead SHT_NOBITS->SHT_PROGBITS code after r358981
After D60131/r358981, we no longer create SHT_NOBITS sections that may
contain ByteCommand (BYTE, SHORT, LONG, QUAD).
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=362108&r1=362107&r2=362108&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Thu May 30 08:52:11 2019
@@ -273,11 +273,6 @@ static void finalizeShtGroup(OutputSecti
}
void OutputSection::finalize() {
- if (Type == SHT_NOBITS)
- for (BaseCommand *Base : SectionCommands)
- if (isa<ByteCommand>(Base))
- Type = SHT_PROGBITS;
-
std::vector<InputSection *> V = getInputSections(this);
InputSection *First = V.empty() ? nullptr : V[0];
More information about the llvm-commits
mailing list