diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-07 19:17:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-07 19:17:47 +0000 |
commit | 39e20aa9c20766cbce0b74d6f12f4d4f5b2d937d (patch) | |
tree | f9e16c6d87c11616d97897f4416c72c9942830f0 /llvm/lib/MC/ELFObjectWriter.cpp | |
parent | a0c6cc41e2a079ce835cabeba300cb89f53d684a (diff) | |
download | bcm5719-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.cpp | 8 |
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); |