summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-09-17 21:34:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-09-17 21:34:32 +0000
commit8315b1c9959a41b598c0cfeba9dc549c8c75c131 (patch)
tree852c63b1f284c992725a065636d9dca61e77fb9e
parentb1278f33499621a5791c55bdb92b2c3e2185c39b (diff)
downloadbcm5719-llvm-8315b1c9959a41b598c0cfeba9dc549c8c75c131.tar.gz
bcm5719-llvm-8315b1c9959a41b598c0cfeba9dc549c8c75c131.zip
Remove dead member variable.
llvm-svn: 247949
-rw-r--r--lld/ELF/Writer.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 6f0e59d60ff..b4d542138ab 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -155,10 +155,8 @@ public:
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 @@ public:
private:
std::vector<SectionChunk<ELFT> *> Chunks;
- RelocationSection<ELFT> &RelaDynSec;
};
namespace {
@@ -922,7 +919,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
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;
OpenPOWER on IntegriCloud