diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 3fa857e69ac..7505bb8884d 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -1680,17 +1680,11 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm, RevGroupMapTy RevGroupMap; SectionIndexMapTy SectionIndexMap; - unsigned NumUserSections = Asm.size(); - CompressDebugSections(Asm, const_cast(Layout)); - - const unsigned NumUserAndRelocSections = Asm.size(); createIndexedSections(Asm, const_cast(Layout), GroupMap, RevGroupMap, SectionIndexMap); - const unsigned AllSections = Asm.size(); - const unsigned NumIndexedSections = AllSections - NumUserAndRelocSections; - unsigned NumRegularSections = NumUserSections + NumIndexedSections; + unsigned NumRegularSections = Asm.size(); // Compute symbol table information. computeSymbolTable(Asm, Layout, SectionIndexMap, RevGroupMap);