[lld] r285816 - Pass the section table to getSectionStringTable. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 08:21:24 PDT 2016


Author: rafael
Date: Wed Nov  2 10:21:24 2016
New Revision: 285816

URL: http://llvm.org/viewvc/llvm-project?rev=285816&view=rev
Log:
Pass the section table to getSectionStringTable. NFC.

This will let us simplify the llvm side.

Modified:
    lld/trunk/ELF/InputFiles.cpp

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=285816&r1=285815&r2=285816&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Nov  2 10:21:24 2016
@@ -291,7 +291,7 @@ void elf::ObjectFile<ELFT>::initializeSe
   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)




More information about the llvm-commits mailing list