summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-10-16 22:01:22 +0000
committerJustin Bogner <mail@justinbogner.com>2016-10-16 22:01:22 +0000
commit16742618862ab8e4850bd2785f7d08c51adea95d (patch)
tree8e18c53114ef6a12e26fe98ae31bf3bbcee6294c
parent17d5090532e5e85fa4f69d6d36c806a187ad2198 (diff)
downloadbcm5719-llvm-16742618862ab8e4850bd2785f7d08c51adea95d.tar.gz
bcm5719-llvm-16742618862ab8e4850bd2785f7d08c51adea95d.zip
Support: Return void from Scanner::scan_ns_uri_char, no one uses the result
Simplify this a little bit since the result is never used. It can be added back easily enough if that changes. llvm-svn: 284348
-rw-r--r--llvm/lib/Support/YAMLParser.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Support/YAMLParser.cpp b/llvm/lib/Support/YAMLParser.cpp
index 0d169af26be..b74ea351c90 100644
--- a/llvm/lib/Support/YAMLParser.cpp
+++ b/llvm/lib/Support/YAMLParser.cpp
@@ -360,10 +360,7 @@ private:
/// @brief Scan ns-uri-char[39]s starting at Cur.
///
/// This updates Cur and Column while scanning.
- ///
- /// @returns A StringRef starting at Cur which covers the longest contiguous
- /// sequence of ns-uri-char.
- StringRef scan_ns_uri_char();
+ void scan_ns_uri_char();
/// @brief Consume a minimal well-formed code unit subsequence starting at
/// \a Cur. Return false if it is not the same Unicode scalar value as
@@ -883,8 +880,7 @@ static bool is_ns_word_char(const char C) {
|| (C >= 'A' && C <= 'Z');
}
-StringRef Scanner::scan_ns_uri_char() {
- StringRef::iterator Start = Current;
+void Scanner::scan_ns_uri_char() {
while (true) {
if (Current == End)
break;
@@ -900,7 +896,6 @@ StringRef Scanner::scan_ns_uri_char() {
} else
break;
}
- return StringRef(Start, Current - Start);
}
bool Scanner::consume(uint32_t Expected) {
OpenPOWER on IntegriCloud