Remove redundant argument. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Jul 2017 16:40:44 +0000 (16:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Jul 2017 16:40:44 +0000 (16:40 +0000)
llvm-svn: 307279

lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Writer.cpp

index 06aaad7..d6ae5dc 100644 (file)
@@ -155,9 +155,7 @@ static SectionKey createKey(InputSectionBase *C, StringRef OutsecName) {
   return SectionKey{OutsecName, Flags, Alignment};
 }
 
-OutputSectionFactory::OutputSectionFactory(
-    std::vector<OutputSection *> &OutputSections)
-    : OutputSections(OutputSections) {}
+OutputSectionFactory::OutputSectionFactory() {}
 
 static uint64_t getIncompatibleFlags(uint64_t Flags) {
   return Flags & (SHF_ALLOC | SHF_TLS);
index 2ecb6c2..68ee066 100644 (file)
@@ -131,7 +131,7 @@ namespace elf {
 // linker scripts.
 class OutputSectionFactory {
 public:
-  OutputSectionFactory(std::vector<OutputSection *> &OutputSections);
+  OutputSectionFactory();
   ~OutputSectionFactory();
 
   void addInputSec(InputSectionBase *IS, StringRef OutsecName);
@@ -140,7 +140,6 @@ public:
 
 private:
   llvm::SmallDenseMap<SectionKey, OutputSection *> Map;
-  std::vector<OutputSection *> &OutputSections;
 };
 
 uint64_t getHeaderSize();
index 6828dba..b6f79fd 100644 (file)
@@ -73,7 +73,7 @@ private:
 
   std::unique_ptr<FileOutputBuffer> Buffer;
 
-  OutputSectionFactory Factory{OutputSections};
+  OutputSectionFactory Factory;
 
   void addRelIpltSymbols();
   void addStartEndSymbols();