[lld] r315133 - Remove unused parameters.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 6 17:08:30 PDT 2017
Author: ruiu
Date: Fri Oct 6 17:08:30 2017
New Revision: 315133
URL: http://llvm.org/viewvc/llvm-project?rev=315133&view=rev
Log:
Remove unused parameters.
Modified:
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/OutputSections.h
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=315133&r1=315132&r2=315133&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Oct 6 17:08:30 2017
@@ -416,7 +416,7 @@ void LinkerScript::processCommands(Outpu
// Add input sections to an output section.
for (InputSectionBase *S : V)
- Factory.addInputSec(S, Sec->Name, Sec);
+ Factory.addInputSec(S, Sec);
assert(Sec->SectionIndex == INT_MAX);
Sec->SectionIndex = I;
@@ -466,7 +466,7 @@ void LinkerScript::addOrphanSections(Out
if (OutputSection *Sec = findByName(
makeArrayRef(Opt.Commands).slice(0, End), Name)) {
- Factory.addInputSec(S, Name, Sec);
+ Factory.addInputSec(S, Sec);
continue;
}
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=315133&r1=315132&r2=315133&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Fri Oct 6 17:08:30 2017
@@ -205,11 +205,10 @@ static OutputSection *createSection(Inpu
Sec->Type = IS->Type;
Sec->Flags = IS->Flags;
Sec->addSection(cast<InputSection>(IS));
-
return Sec;
}
-static void addSection(OutputSection *Sec, InputSectionBase *IS, StringRef OutsecName) {
+static void addSection(OutputSection *Sec, InputSectionBase *IS) {
if (Sec->Live) {
if (getIncompatibleFlags(Sec->Flags) != getIncompatibleFlags(IS->Flags))
error("incompatible section flags for " + Sec->Name + "\n>>> " +
@@ -236,10 +235,9 @@ static void addSection(OutputSection *Se
}
void OutputSectionFactory::addInputSec(InputSectionBase *IS,
- StringRef OutsecName,
OutputSection *OS) {
if (IS->Live)
- addSection(OS, IS, OutsecName);
+ addSection(OS, IS);
else
reportDiscarded(IS);
}
@@ -273,7 +271,7 @@ OutputSection *OutputSectionFactory::add
OutputSection *Out = Sec->getRelocatedSection()->getOutputSection();
if (Out->RelocationSection) {
- addSection(Out->RelocationSection, IS, OutsecName);
+ addSection(Out->RelocationSection, IS);
return nullptr;
}
@@ -284,7 +282,7 @@ OutputSection *OutputSectionFactory::add
SectionKey Key = createKey(IS, OutsecName);
OutputSection *&Sec = Map[Key];
if (Sec) {
- addSection(Sec, IS, OutsecName);
+ addSection(Sec, IS);
return nullptr;
}
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=315133&r1=315132&r2=315133&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Fri Oct 6 17:08:30 2017
@@ -165,9 +165,7 @@ public:
~OutputSectionFactory();
OutputSection *addInputSec(InputSectionBase *IS, StringRef OutsecName);
-
- void addInputSec(InputSectionBase *IS, StringRef OutsecName,
- OutputSection *OS);
+ void addInputSec(InputSectionBase *IS, OutputSection *OS);
private:
llvm::SmallDenseMap<SectionKey, OutputSection *> Map;
More information about the llvm-commits
mailing list