diff options
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 97d68d92318..63c8d5a4ffc 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -150,6 +150,16 @@ bool ScriptParserBase::skip(StringRef Tok) { return true; } +void ScriptParserBase::skip() { + if (Error) + return; + if (atEOF()) { + setError("unexpected EOF"); + return; + } + ++Pos; +} + void ScriptParserBase::expect(StringRef Expect) { if (Error) return; |