Simplify script lexer.

Differential Revision: https://reviews.llvm.org/D41577

llvm-svn: 321453
This commit is contained in:
Rui Ueyama
2017-12-26 10:13:10 +00:00
parent 162439dcdf
commit c67d6b2da0
2 changed files with 9 additions and 3 deletions

View File

@@ -707,8 +707,6 @@ OutputSection *ScriptParser::readOutputSectionDescription(StringRef OutSec) {
if (consume(">"))
Cmd->MemoryRegionName = next();
else if (peek().startswith(">"))
Cmd->MemoryRegionName = next().drop_front();
Cmd->Phdrs = readOutputSectionPhdrs();