summaryrefslogtreecommitdiffstats
path: root/lld/ELF/ScriptParser.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-10-17 16:01:53 +0000
committerRui Ueyama <ruiu@google.com>2016-10-17 16:01:53 +0000
commit83043f237ce5942a6ee1696cc743d003bffa3090 (patch)
tree9dac0b323f980fab163c846decdfdbdad8a9a4a7 /lld/ELF/ScriptParser.cpp
parent2cf6bfaf7383bb6bff0ea288a1020516e1abd868 (diff)
downloadbcm5719-llvm-83043f237ce5942a6ee1696cc743d003bffa3090.tar.gz
bcm5719-llvm-83043f237ce5942a6ee1696cc743d003bffa3090.zip
Rename skip(StringRef) -> consume(StringRef).
skip() and skip(StringRef) were overloaded functions that have different semantics. This patch rename one of the functions to avoid function overloading. llvm-svn: 284396
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r--lld/ELF/ScriptParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp
index 63c8d5a4ffc..b123ac13016 100644
--- a/lld/ELF/ScriptParser.cpp
+++ b/lld/ELF/ScriptParser.cpp
@@ -137,7 +137,7 @@ StringRef ScriptParserBase::peek() {
return Tok;
}
-bool ScriptParserBase::skip(StringRef Tok) {
+bool ScriptParserBase::consume(StringRef Tok) {
if (Error)
return false;
if (atEOF()) {
OpenPOWER on IntegriCloud