summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/ELFObjectWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-04-07 19:17:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-04-07 19:17:47 +0000
commit39e20aa9c20766cbce0b74d6f12f4d4f5b2d937d (patch)
treef9e16c6d87c11616d97897f4416c72c9942830f0 /llvm/lib/MC/ELFObjectWriter.cpp
parenta0c6cc41e2a079ce835cabeba300cb89f53d684a (diff)
downloadbcm5719-llvm-39e20aa9c20766cbce0b74d6f12f4d4f5b2d937d.tar.gz
bcm5719-llvm-39e20aa9c20766cbce0b74d6f12f4d4f5b2d937d.zip
Remove intermediate variables.
The name of these variables was completely out of date with the information stored in them. llvm-svn: 234345
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/ELFObjectWriter.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp
index 3fa857e69ac..7505bb8884d 100644
--- a/llvm/lib/MC/ELFObjectWriter.cpp
+++ b/llvm/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<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);
OpenPOWER on IntegriCloud