diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-21 04:55:56 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-21 04:55:56 +0000 |
commit | d35b42f20a48d6fd9c1f8fce095c37794d49806c (patch) | |
tree | 393063216884d10d5efef46472ada966725a2e85 /lldb/tools/debugserver/source | |
parent | 7483005c59828482aa28e09c7a132628b4054e29 (diff) | |
download | bcm5719-llvm-d35b42f20a48d6fd9c1f8fce095c37794d49806c.tar.gz bcm5719-llvm-d35b42f20a48d6fd9c1f8fce095c37794d49806c.zip |
[NFC] Return llvm::StringRef from StringExtractor::GetStringRef.
This patch removes the two variant of StringExtractor::GetStringRef that
return (non-)const references to std::string. The non-const one was
being abused to reinitialize the StringExtractor and its uses are
replaced by calls to the copy asignment operator. The const variant was
refactored to return an actual llvm::StringRef.
llvm-svn: 369493
Diffstat (limited to 'lldb/tools/debugserver/source')
-rw-r--r-- | lldb/tools/debugserver/source/StdStringExtractor.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/tools/debugserver/source/StdStringExtractor.h b/lldb/tools/debugserver/source/StdStringExtractor.h index 031786457e1..5165240bd20 100644 --- a/lldb/tools/debugserver/source/StdStringExtractor.h +++ b/lldb/tools/debugserver/source/StdStringExtractor.h @@ -38,8 +38,6 @@ public: void SkipSpaces(); - std::string &GetStringRef() { return m_packet; } - const std::string &GetStringRef() const { return m_packet; } bool Empty() { return m_packet.empty(); } |