From 1462f5a4c138bb20f38a579a29d12ab4e5fb6191 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 5 Dec 2019 14:41:09 +0100 Subject: [lldb][NFC] Move Address and AddressRange functions out of Stream and let them take raw_ostream Summary: Yet another step on the long road towards getting rid of lldb's Stream class. We probably should just make this some kind of member of Address/AddressRange, but it seems quite often we just push in random integers in there and this is just about getting rid of Stream and not improving arbitrary APIs. I had to rename another `DumpAddress` function in FormatEntity that is dumping the content of an address to make Clang happy. Reviewers: labath Reviewed By: labath Subscribers: JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D71052 --- lldb/source/Core/DumpDataExtractor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lldb/source/Core/DumpDataExtractor.cpp') diff --git a/lldb/source/Core/DumpDataExtractor.cpp b/lldb/source/Core/DumpDataExtractor.cpp index 12e98de2675..b5e1071b72a 100644 --- a/lldb/source/Core/DumpDataExtractor.cpp +++ b/lldb/source/Core/DumpDataExtractor.cpp @@ -467,9 +467,10 @@ lldb::offset_t lldb_private::DumpDataExtractor( } break; case eFormatPointer: - s->Address(DE.GetMaxU64Bitfield(&offset, item_byte_size, item_bit_size, - item_bit_offset), - sizeof(addr_t)); + DumpAddress(s->AsRawOstream(), + DE.GetMaxU64Bitfield(&offset, item_byte_size, item_bit_size, + item_bit_offset), + sizeof(addr_t)); break; case eFormatComplexInteger: { -- cgit v1.2.3