ELF: Remove field for .interp in InStruct. NFC.

This field is unreferenced outside of createSyntheticSections.

Differential Revision: https://reviews.llvm.org/D58422

llvm-svn: 354428
This commit is contained in:
Peter Collingbourne 2019-02-20 02:32:53 +00:00
parent ffece2dfcf
commit 7cca803d4c
2 changed files with 2 additions and 5 deletions

View File

@ -1007,7 +1007,6 @@ struct InStruct {
SymbolTableBaseSection *DynSymTab;
GnuHashTableSection *GnuHashTab;
HashTableSection *HashTab;
InputSection *Interp;
GdbIndexSection *GdbIndex;
GotSection *Got;
GotPltSection *GotPlt;

View File

@ -288,10 +288,8 @@ template <class ELFT> static void createSyntheticSections() {
Out::ProgramHeaders = make<OutputSection>("", 0, SHF_ALLOC);
Out::ProgramHeaders->Alignment = Config->Wordsize;
if (needsInterpSection()) {
In.Interp = createInterpSection();
Add(In.Interp);
}
if (needsInterpSection())
Add(createInterpSection());
if (Config->Strip != StripPolicy::All) {
In.StrTab = make<StringTableSection>(".strtab", false);