diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-07 17:07:18 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-07 17:07:18 -0500 |
| commit | 3e08b3a4f89ee8e6102fcc67fc7e77c5e3eba104 (patch) | |
| tree | e45ce5ccef05c44a202de42901bb3513ac0b178b /deps/lld/ELF/ScriptLexer.cpp | |
| parent | 91baa574a5f7224b48e4499a9db0c5283d800ec3 (diff) | |
| download | zig-3e08b3a4f89ee8e6102fcc67fc7e77c5e3eba104.tar.gz zig-3e08b3a4f89ee8e6102fcc67fc7e77c5e3eba104.zip | |
update embedded LLD to 8.0.0rc2
Diffstat (limited to 'deps/lld/ELF/ScriptLexer.cpp')
| -rw-r--r-- | deps/lld/ELF/ScriptLexer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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(); |
