forked from OSchip/llvm-project
Pass the section table to getSectionStringTable. NFC.
This will let us simplify the llvm side. llvm-svn: 285816
This commit is contained in:
parent
d7160056dc
commit
199e00408f
|
|
@ -291,7 +291,7 @@ void elf::ObjectFile<ELFT>::initializeSections(
|
||||||
uint64_t Size = ObjSections.size();
|
uint64_t Size = ObjSections.size();
|
||||||
Sections.resize(Size);
|
Sections.resize(Size);
|
||||||
unsigned I = -1;
|
unsigned I = -1;
|
||||||
StringRef SectionStringTable = check(Obj.getSectionStringTable());
|
StringRef SectionStringTable = check(Obj.getSectionStringTable(ObjSections));
|
||||||
for (const Elf_Shdr &Sec : ObjSections) {
|
for (const Elf_Shdr &Sec : ObjSections) {
|
||||||
++I;
|
++I;
|
||||||
if (Sections[I] == &InputSection<ELFT>::Discarded)
|
if (Sections[I] == &InputSection<ELFT>::Discarded)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue