diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2018-07-31 01:21:36 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2018-07-31 01:21:36 +0000 |
| commit | 56bf356a4b7f769db1ca97cf11e432b8e3b52939 (patch) | |
| tree | 2f6b8df89fd2f34fe1b5028cbe3d6be356a7ef48 /lldb/source/Utility/Stream.cpp | |
| parent | d2bad6c639a792fd9fc5e2e45a4c3c79f099690b (diff) | |
| download | bcm5719-llvm-56bf356a4b7f769db1ca97cf11e432b8e3b52939.tar.gz bcm5719-llvm-56bf356a4b7f769db1ca97cf11e432b8e3b52939.zip | |
Remove Stream::UnitTest
Summary: No one is using this method, and it also doesn't really make a lot of sense to have it around.
Reviewers: davide
Reviewed By: davide
Subscribers: davide, lldb-commits
Differential Revision: https://reviews.llvm.org/D50026
llvm-svn: 338345
Diffstat (limited to 'lldb/source/Utility/Stream.cpp')
| -rw-r--r-- | lldb/source/Utility/Stream.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/lldb/source/Utility/Stream.cpp b/lldb/source/Utility/Stream.cpp index 647a0c0beb5..7df7f700808 100644 --- a/lldb/source/Utility/Stream.cpp +++ b/lldb/source/Utility/Stream.cpp @@ -526,48 +526,3 @@ size_t Stream::PutCStringAsRawHex8(const char *s) { m_flags.Set(eBinary); return bytes_written; } - -void Stream::UnitTest(Stream *s) { - s->PutHex8(0x12); - - s->PutChar(' '); - s->PutHex16(0x3456, endian::InlHostByteOrder()); - s->PutChar(' '); - s->PutHex16(0x3456, eByteOrderBig); - s->PutChar(' '); - s->PutHex16(0x3456, eByteOrderLittle); - - s->PutChar(' '); - s->PutHex32(0x789abcde, endian::InlHostByteOrder()); - s->PutChar(' '); - s->PutHex32(0x789abcde, eByteOrderBig); - s->PutChar(' '); - s->PutHex32(0x789abcde, eByteOrderLittle); - - s->PutChar(' '); - s->PutHex64(0x1122334455667788ull, endian::InlHostByteOrder()); - s->PutChar(' '); - s->PutHex64(0x1122334455667788ull, eByteOrderBig); - s->PutChar(' '); - s->PutHex64(0x1122334455667788ull, eByteOrderLittle); - - const char *hola = "Hello World!!!"; - s->PutChar(' '); - s->PutCString(hola); - - s->PutChar(' '); - s->Write(hola, 5); - - s->PutChar(' '); - s->PutCStringAsRawHex8(hola); - - s->PutChar(' '); - s->PutCStringAsRawHex8("01234"); - - s->PutChar(' '); - s->Printf("pid=%i", 12733); - - s->PutChar(' '); - s->PrintfAsRawHex8("pid=%i", 12733); - s->PutChar('\n'); -} |

