Remove unused argument.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 20 Oct 2017 23:28:19 +0000 (23:28 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 20 Oct 2017 23:28:19 +0000 (23:28 +0000)
llvm-svn: 316248

lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/Writer.cpp

index 3149c98..b75802f 100644 (file)
@@ -339,7 +339,7 @@ LinkerScript::createInputSectionList(OutputSection &OutCmd) {
   return Ret;
 }
 
-void LinkerScript::processSectionCommands(OutputSectionFactory &Factory) {
+void LinkerScript::processSectionCommands() {
   // A symbol can be assigned before any section is mentioned in the linker
   // script. In an DSO, the symbol values are addresses, so the only important
   // section values are:
index 992fbb6..03c8392 100644 (file)
@@ -246,7 +246,7 @@ public:
   bool shouldKeep(InputSectionBase *S);
   void assignAddresses();
   void allocateHeaders(std::vector<PhdrEntry *> &Phdrs);
-  void processSectionCommands(OutputSectionFactory &Factory);
+  void processSectionCommands();
 
   // SECTIONS command list.
   std::vector<BaseCommand *> SectionCommands;
index 7f10e6c..8570a80 100644 (file)
@@ -163,7 +163,7 @@ template <class ELFT> void Writer<ELFT>::run() {
   // Create output sections.
   if (Script->HasSectionsCommand) {
     // If linker script contains SECTIONS commands, let it create sections.
-    Script->processSectionCommands(Factory);
+    Script->processSectionCommands();
 
     // Linker scripts may have left some input sections unassigned.
     // Assign such sections using the default rule.
@@ -173,7 +173,7 @@ template <class ELFT> void Writer<ELFT>::run() {
     // output sections by default rules. We still need to give the
     // linker script a chance to run, because it might contain
     // non-SECTIONS commands such as ASSERT.
-    Script->processSectionCommands(Factory);
+    Script->processSectionCommands();
     createSections();
   }