Inline SectionRule::match.
This short function was used only once and didn't provide much value.
llvm-svn: 267086
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 43d8022..9fcb2f61 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -165,7 +165,7 @@
template <class ELFT>
StringRef LinkerScript<ELFT>::getOutputSection(InputSectionBase<ELFT> *S) {
for (SectionRule &R : Opt.Sections)
- if (R.match(S))
+ if (matchStr(R.SectionPattern, S->getSectionName()))
return R.Dest;
return "";
}
@@ -296,10 +296,6 @@
}
}
-template <class ELFT> bool SectionRule::match(InputSectionBase<ELFT> *S) {
- return matchStr(SectionPattern, S->getSectionName());
-}
-
class elf::ScriptParser : public ScriptParserBase {
typedef void (ScriptParser::*Handler)();