From 3e08b3a4f89ee8e6102fcc67fc7e77c5e3eba104 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 7 Feb 2019 17:07:18 -0500 Subject: update embedded LLD to 8.0.0rc2 --- deps/lld/ELF/ScriptLexer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'deps/lld/ELF/ScriptLexer.cpp') diff --git a/deps/lld/ELF/ScriptLexer.cpp b/deps/lld/ELF/ScriptLexer.cpp index d4b1f6d99c..9a372c6d1c 100644 --- a/deps/lld/ELF/ScriptLexer.cpp +++ b/deps/lld/ELF/ScriptLexer.cpp @@ -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(); -- cgit v1.2.3