summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Stream.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-08 04:12:42 +0000
committerZachary Turner <zturner@google.com>2016-11-08 04:12:42 +0000
commit0ac5f9846ba9f66c5708a21dc23490d083058b7c (patch)
tree28cc67ee2ad1bf7746bd1bb555d4812c58c8e774 /lldb/source/Core/Stream.cpp
parent63b06e185cb6d9694c392d6018de1ebe9453912d (diff)
downloadbcm5719-llvm-0ac5f9846ba9f66c5708a21dc23490d083058b7c.tar.gz
bcm5719-llvm-0ac5f9846ba9f66c5708a21dc23490d083058b7c.zip
Rewrite OutputFormattedHelpText in terms of StringRef.
This makes the logic easier to follow and also propagates StringRef up to the API boundary, which is necessary for making higher up StringRef API changes. Differential Revision: https://reviews.llvm.org/D26325 llvm-svn: 286204
Diffstat (limited to 'lldb/source/Core/Stream.cpp')
-rw-r--r--lldb/source/Core/Stream.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Core/Stream.cpp b/lldb/source/Core/Stream.cpp
index 7614d02742b..2f9c650ee5b 100644
--- a/lldb/source/Core/Stream.cpp
+++ b/lldb/source/Core/Stream.cpp
@@ -227,6 +227,11 @@ Stream &Stream::operator<<(const char *s) {
return *this;
}
+Stream &Stream::operator<<(llvm::StringRef str) {
+ Write(str.data(), str.size());
+ return *this;
+}
+
//------------------------------------------------------------------
// Stream the pointer value out to this stream.
//------------------------------------------------------------------
OpenPOWER on IntegriCloud