diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 4156f08dfd85a51a6484d8059ff712e69ad5f35a..da8a19370f145dc7c8d238bbffb29bd8fa336ede 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -342,7 +342,6 @@ private: void readLocationCounterValue(); void readOutputSectionDescription(); - void readSectionPatterns(StringRef OutSec); const static StringMap Cmd; ScriptConfiguration &Opt = *ScriptConfig; @@ -513,12 +512,6 @@ void ScriptParser::readSections() { } } -void ScriptParser::readSectionPatterns(StringRef OutSec) { - expect("("); - while (!Error && !skip(")")) - Opt.Sections.emplace_back(OutSec, next()); -} - void ScriptParser::readLocationCounterValue() { expect("."); expect("=");