From c67d6b2da0a651a48408ca03ee2edc1bc9a3c29a Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 26 Dec 2017 10:13:10 +0000 Subject: Simplify script lexer. Differential Revision: https://reviews.llvm.org/D41577 llvm-svn: 321453 --- lld/ELF/ScriptParser.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lld/ELF/ScriptParser.cpp') diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index c1176ccfa8d..f8a44940a9f 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -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(); -- cgit v1.2.3