forked from OSchip/llvm-project
ELF: Implement skip() as (void)next()
Thanks to Rafael for pointing out the simplification. llvm-svn: 284407
This commit is contained in:
parent
020d104496
commit
c197ae0d74
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue