[llvm] r241284 - Convert a member variable to a local one.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jul 2 09:59:57 PDT 2015
Author: rafael
Date: Thu Jul 2 11:59:57 2015
New Revision: 241284
URL: http://llvm.org/viewvc/llvm-project?rev=241284&view=rev
Log:
Convert a member variable to a local one.
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=241284&r1=241283&r2=241284&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Thu Jul 2 11:59:57 2015
@@ -116,8 +116,6 @@ class ELFObjectWriter : public MCObjectW
unsigned StringTableIndex;
// This holds the .symtab section index.
unsigned SymbolTableIndex;
- // This holds the .symtab_shndx section index.
- unsigned SymtabShndxSectionIndex = 0;
// Sections in the order they are to be output in the section table.
std::vector<const MCSectionELF *> SectionTable;
@@ -144,7 +142,6 @@ class ELFObjectWriter : public MCObjectW
Renames.clear();
Relocations.clear();
StrTabBuilder.clear();
- SymtabShndxSectionIndex = 0;
SectionTable.clear();
MCObjectWriter::reset();
}
@@ -867,6 +864,9 @@ void ELFObjectWriter::computeSymbolTable
ExternalSymbolData.push_back(MSD);
}
+ // This holds the .symtab_shndx section index.
+ unsigned SymtabShndxSectionIndex = 0;
+
if (HasLargeSectionIndex) {
MCSectionELF *SymtabShndxSection =
Ctx.getELFSection(".symtab_shndxr", ELF::SHT_SYMTAB_SHNDX, 0, 4, "");
More information about the llvm-commits
mailing list