summaryrefslogtreecommitdiffstats
path: root/lld/ELF/ScriptParser.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-12-26 10:13:10 +0000
committerRui Ueyama <ruiu@google.com>2017-12-26 10:13:10 +0000
commitc67d6b2da0a651a48408ca03ee2edc1bc9a3c29a (patch)
treee9550408929d60259c2d8c8ea8d752b949d8a225 /lld/ELF/ScriptParser.cpp
parent162439dcdf1d5ec17a7a140695e9c3ce33b830e7 (diff)
downloadbcm5719-llvm-c67d6b2da0a651a48408ca03ee2edc1bc9a3c29a.tar.gz
bcm5719-llvm-c67d6b2da0a651a48408ca03ee2edc1bc9a3c29a.zip
Simplify script lexer.
Differential Revision: https://reviews.llvm.org/D41577 llvm-svn: 321453
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r--lld/ELF/ScriptParser.cpp2
1 files changed, 0 insertions, 2 deletions
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();
OpenPOWER on IntegriCloud