From 8a781bee0010268210169528b43d9f268f43d1cc Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 7 Apr 2015 19:17:47 +0000 Subject: [PATCH] Remove intermediate variables. The name of these variables was completely out of date with the information stored in them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234345 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/ELFObjectWriter.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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); -- 2.34.1