summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-11-02 15:21:24 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-11-02 15:21:24 +0000
commit199e00408fed572efc202948898d8fc7ac295a5d (patch)
treecdec45a5bfbb557ab21a46e2480b2ebd2bbf2bf1
parentd7160056dce0d784c237efa200196a13aaf6182e (diff)
downloadbcm5719-llvm-199e00408fed572efc202948898d8fc7ac295a5d.tar.gz
bcm5719-llvm-199e00408fed572efc202948898d8fc7ac295a5d.zip
Pass the section table to getSectionStringTable. NFC.
This will let us simplify the llvm side. llvm-svn: 285816
-rw-r--r--lld/ELF/InputFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index f8e80062c60..5bbea4f4c96 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -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)
OpenPOWER on IntegriCloud