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 06aaad7785f0c2323265460453bb70da59d84cc0..d6ae5dcae167859b6318c4099600cb1c4c1681dd 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 2ecb6c29969327286e638bc28c2aaf189d9f5c27..68ee066a13dafe16823585d62c4de01226d0265b 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 6828dba1ea61dafa61be631669e05603fe308c26..b6f79fd785a9740164a8d4a823b0089b8d8ae57f 100644 (file)
@@ -73,7 +73,7 @@ private:
 
   std::unique_ptr<FileOutputBuffer> Buffer;
 
-  OutputSectionFactory Factory{OutputSections};
+  OutputSectionFactory Factory;
 
   void addRelIpltSymbols();
   void addStartEndSymbols();