ELF: Remove field for .interp in InStruct. NFC.
This field is unreferenced outside of createSyntheticSections.
Differential Revision: https://reviews.llvm.org/D58422
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@354428 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/ELF/SyntheticSections.h b/ELF/SyntheticSections.h
index 90e1e12..5b6bdbb 100644
--- a/ELF/SyntheticSections.h
+++ b/ELF/SyntheticSections.h
@@ -1007,7 +1007,6 @@
SymbolTableBaseSection *DynSymTab;
GnuHashTableSection *GnuHashTab;
HashTableSection *HashTab;
- InputSection *Interp;
GdbIndexSection *GdbIndex;
GotSection *Got;
GotPltSection *GotPlt;
diff --git a/ELF/Writer.cpp b/ELF/Writer.cpp
index c48c4bf..6ed640e 100644
--- a/ELF/Writer.cpp
+++ b/ELF/Writer.cpp
@@ -288,10 +288,8 @@
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);