ELF: Implement skip() as (void)next()

Thanks to Rafael for pointing out the simplification.

llvm-svn: 284407
This commit is contained in:
Justin Bogner 2016-10-17 18:40:35 +00:00
parent 020d104496
commit c197ae0d74
1 changed files with 1 additions and 9 deletions

View File

@ -150,15 +150,7 @@ bool ScriptParserBase::consume(StringRef Tok) {
return true;
}
void ScriptParserBase::skip() {
if (Error)
return;
if (atEOF()) {
setError("unexpected EOF");
return;
}
++Pos;
}
void ScriptParserBase::skip() { (void)next(); }
void ScriptParserBase::expect(StringRef Expect) {
if (Error)