From 199e00408fed572efc202948898d8fc7ac295a5d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 2 Nov 2016 15:21:24 +0000 Subject: [PATCH] Pass the section table to getSectionStringTable. NFC. This will let us simplify the llvm side. llvm-svn: 285816 --- lld/ELF/InputFiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index f8e80062c608..5bbea4f4c967 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -291,7 +291,7 @@ void elf::ObjectFile::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::Discarded) -- 2.34.1