[ELF] - Remove unnecessary template #6. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@297734 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/ELF/LinkerScript.cpp b/ELF/LinkerScript.cpp
index a1cc6f9..244679d 100644
--- a/ELF/LinkerScript.cpp
+++ b/ELF/LinkerScript.cpp
@@ -518,7 +518,6 @@
}
}
-template <class ELFT>
static OutputSection *
findSection(StringRef Name, const std::vector<OutputSection *> &Sections) {
auto End = Sections.end();
@@ -571,7 +570,7 @@
// for a single sections command (e.g. ".text { *(.text); }").
template <class ELFT>
void LinkerScript<ELFT>::assignOffsets(OutputSectionCommand *Cmd) {
- OutputSection *Sec = findSection<ELFT>(Cmd->Name, *OutputSections);
+ OutputSection *Sec = findSection(Cmd->Name, *OutputSections);
if (!Sec)
return;
@@ -618,7 +617,7 @@
Opt.Commands.begin(), Opt.Commands.end(),
[&](const std::unique_ptr<BaseCommand> &Base) {
if (auto *Cmd = dyn_cast<OutputSectionCommand>(Base.get()))
- return !findSection<ELFT>(Cmd->Name, *OutputSections);
+ return !findSection(Cmd->Name, *OutputSections);
return false;
});
Opt.Commands.erase(Pos, Opt.Commands.end());
@@ -642,7 +641,7 @@
auto *Cmd = dyn_cast<OutputSectionCommand>(Base.get());
if (!Cmd)
continue;
- if (OutputSection *Sec = findSection<ELFT>(Cmd->Name, *OutputSections)) {
+ if (OutputSection *Sec = findSection(Cmd->Name, *OutputSections)) {
Flags = Sec->Flags;
Type = Sec->Type;
continue;