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.h b/lld/ELF/LinkerScript.h
index 5c07e7f..dfffb98 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -28,8 +28,7 @@
template <class ELFT> class OutputSectionBase;
// This class represents each rule in SECTIONS command.
-class SectionRule {
-public:
+struct SectionRule {
SectionRule(StringRef D, StringRef S)
: Dest(D), SectionPattern(S) {}
@@ -38,7 +37,6 @@
StringRef Dest;
-private:
StringRef SectionPattern;
};
@@ -90,7 +88,6 @@
ScriptConfiguration &Opt = *ScriptConfig;
int getSectionIndex(StringRef Name);
- SectionRule *find(InputSectionBase<ELFT> *S);
uint64_t evaluate(ArrayRef<StringRef> Tokens);
uint64_t parseExpr(ArrayRef<StringRef> &Tokens);