[lld] r247949 - Remove dead member variable.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 14:34:32 PDT 2015


Author: rafael
Date: Thu Sep 17 16:34:32 2015
New Revision: 247949

URL: http://llvm.org/viewvc/llvm-project?rev=247949&view=rev
Log:
Remove dead member variable.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=247949&r1=247948&r2=247949&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Sep 17 16:34:32 2015
@@ -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>:
     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;




More information about the llvm-commits mailing list