[lld] r316248 - Remove unused argument.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 16:28:19 PDT 2017
Author: rafael
Date: Fri Oct 20 16:28:19 2017
New Revision: 316248
URL: http://llvm.org/viewvc/llvm-project?rev=316248&view=rev
Log:
Remove unused argument.
Modified:
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/LinkerScript.h
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=316248&r1=316247&r2=316248&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Oct 20 16:28:19 2017
@@ -339,7 +339,7 @@ LinkerScript::createInputSectionList(Out
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:
Modified: lld/trunk/ELF/LinkerScript.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.h?rev=316248&r1=316247&r2=316248&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.h (original)
+++ lld/trunk/ELF/LinkerScript.h Fri Oct 20 16:28:19 2017
@@ -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;
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=316248&r1=316247&r2=316248&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Oct 20 16:28:19 2017
@@ -163,7 +163,7 @@ template <class ELFT> void Writer<ELFT>:
// 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>:
// 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();
}
More information about the llvm-commits
mailing list