| commit | f3965c02462e2f6f8e07823e219cc923e76e5708 | [log] [tgz] |
|---|---|---|
| author | Dmitry Mikulin <dmitry.mikulin@sony.com> | Tue Feb 07 19:50:47 2017 +0000 |
| committer | Dmitry Mikulin <dmitry.mikulin@sony.com> | Tue Feb 07 19:50:47 2017 +0000 |
| tree | 042bf63c02744c1043fad66c8094fbd28b2aa207 | |
| parent | 3877f397cd1d52b5ac6fd5e7d1e208f2d2caa09e [diff] [blame] |
Handle the case where 'local' is the name of a global in a version script:
{ global : local; local: *; };
llvm-svn: 294343
diff --git a/lld/ELF/ScriptParser.h b/lld/ELF/ScriptParser.h index 264c497..42ae267 100644 --- a/lld/ELF/ScriptParser.h +++ b/lld/ELF/ScriptParser.h
@@ -28,7 +28,7 @@ static StringRef skipSpace(StringRef S); bool atEOF(); StringRef next(); - StringRef peek(); + StringRef peek(unsigned N = 0); void skip(); bool consume(StringRef Tok); void expect(StringRef Expect);