[llvm] r234345 - Remove intermediate variables.
Rafael Espindola
rafael.espindola at gmail.com
Tue Apr 7 12:17:47 PDT 2015
Author: rafael
Date: Tue Apr 7 14:17:47 2015
New Revision: 234345
URL: http://llvm.org/viewvc/llvm-project?rev=234345&view=rev
Log:
Remove intermediate variables.
The name of these variables was completely out of date with the information
stored in them.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=234345&r1=234344&r2=234345&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Tue Apr 7 14:17:47 2015
@@ -1680,17 +1680,11 @@ void ELFObjectWriter::WriteObject(MCAsse
RevGroupMapTy RevGroupMap;
SectionIndexMapTy SectionIndexMap;
- unsigned NumUserSections = Asm.size();
-
CompressDebugSections(Asm, const_cast<MCAsmLayout &>(Layout));
-
- const unsigned NumUserAndRelocSections = Asm.size();
createIndexedSections(Asm, const_cast<MCAsmLayout &>(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);
More information about the llvm-commits
mailing list