[ELF] - Change consume()->expect() in INSERT AFTER parsing.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 12 Mar 2018 12:34:43 +0000 (12:34 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 12 Mar 2018 12:34:43 +0000 (12:34 +0000)
commite3f198d58ab3fef822e48649775aa5c753ac240b
treeae501f1c3e42df350936e4b4b1bbb3c2285d5155
parent6618e2a09c69a305bcaf05e9d7a8a1dd32d514a8
[ELF] - Change consume()->expect() in INSERT AFTER parsing.

AFTER keyword is mandatory and consume() was
used by mistake here. We accepted broken script before
this patch, testcase shows the issue.

llvm-svn: 327260
lld/ELF/ScriptParser.cpp
lld/test/ELF/linkerscript/insert-broken.test [new file with mode: 0644]