Pass the section table to getSectionStringTable. NFC.

This will let us simplify the llvm side.

llvm-svn: 285816
This commit is contained in:
Rafael Espindola 2016-11-02 15:21:24 +00:00
parent d7160056dc
commit 199e00408f
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ void elf::ObjectFile<ELFT>::initializeSections(
uint64_t Size = ObjSections.size();
Sections.resize(Size);
unsigned I = -1;
StringRef SectionStringTable = check(Obj.getSectionStringTable());
StringRef SectionStringTable = check(Obj.getSectionStringTable(ObjSections));
for (const Elf_Shdr &Sec : ObjSections) {
++I;
if (Sections[I] == &InputSection<ELFT>::Discarded)