update embedded LLD to 8.0.0rc2
This commit is contained in:
9
deps/lld/ELF/ScriptLexer.cpp
vendored
9
deps/lld/ELF/ScriptLexer.cpp
vendored
@@ -244,6 +244,15 @@ StringRef ScriptLexer::peek() {
|
||||
return Tok;
|
||||
}
|
||||
|
||||
StringRef ScriptLexer::peek2() {
|
||||
skip();
|
||||
StringRef Tok = next();
|
||||
if (errorCount())
|
||||
return "";
|
||||
Pos = Pos - 2;
|
||||
return Tok;
|
||||
}
|
||||
|
||||
bool ScriptLexer::consume(StringRef Tok) {
|
||||
if (peek() == Tok) {
|
||||
skip();
|
||||
|
||||
Reference in New Issue
Block a user