Remove dead member variable.
llvm-svn: 247949
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 6f0e59d..b4d5421 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -155,10 +155,8 @@
typedef typename ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
typedef typename ELFFile<ELFT>::Elf_Rel Elf_Rel;
typedef typename ELFFile<ELFT>::Elf_Rela Elf_Rela;
- OutputSection(StringRef Name, uint32_t sh_type, uintX_t sh_flags,
- RelocationSection<ELFT> &RelaDynSec)
- : OutputSectionBase<ELFT::Is64Bits>(Name, sh_type, sh_flags),
- RelaDynSec(RelaDynSec) {}
+ OutputSection(StringRef Name, uint32_t sh_type, uintX_t sh_flags)
+ : OutputSectionBase<ELFT::Is64Bits>(Name, sh_type, sh_flags) {}
void addChunk(SectionChunk<ELFT> *C);
void writeTo(uint8_t *Buf) override;
@@ -175,7 +173,6 @@
private:
std::vector<SectionChunk<ELFT> *> Chunks;
- RelocationSection<ELFT> &RelaDynSec;
};
namespace {
@@ -922,7 +919,7 @@
OutputSection<ELFT> *&Sec = Map[Key];
if (!Sec) {
Sec = new (CAlloc.Allocate())
- OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags, RelaDynSec);
+ OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags);
OutputSections.push_back(Sec);
}
return Sec;