Skip to content

Commit 8315b1c

Browse files
committed
Remove dead member variable.
llvm-svn: 247949
1 parent b1278f3 commit 8315b1c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lld/ELF/Writer.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,8 @@ class lld::elf2::OutputSection final
155155
typedef typename ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
156156
typedef typename ELFFile<ELFT>::Elf_Rel Elf_Rel;
157157
typedef typename ELFFile<ELFT>::Elf_Rela Elf_Rela;
158-
OutputSection(StringRef Name, uint32_t sh_type, uintX_t sh_flags,
159-
RelocationSection<ELFT> &RelaDynSec)
160-
: OutputSectionBase<ELFT::Is64Bits>(Name, sh_type, sh_flags),
161-
RelaDynSec(RelaDynSec) {}
158+
OutputSection(StringRef Name, uint32_t sh_type, uintX_t sh_flags)
159+
: OutputSectionBase<ELFT::Is64Bits>(Name, sh_type, sh_flags) {}
162160

163161
void addChunk(SectionChunk<ELFT> *C);
164162
void writeTo(uint8_t *Buf) override;
@@ -175,7 +173,6 @@ class lld::elf2::OutputSection final
175173

176174
private:
177175
std::vector<SectionChunk<ELFT> *> Chunks;
178-
RelocationSection<ELFT> &RelaDynSec;
179176
};
180177

181178
namespace {
@@ -922,7 +919,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
922919
OutputSection<ELFT> *&Sec = Map[Key];
923920
if (!Sec) {
924921
Sec = new (CAlloc.Allocate())
925-
OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags, RelaDynSec);
922+
OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags);
926923
OutputSections.push_back(Sec);
927924
}
928925
return Sec;

0 commit comments

Comments
 (0)