diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-12-05 14:41:09 +0100 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-05 14:41:33 +0100 |
| commit | 1462f5a4c138bb20f38a579a29d12ab4e5fb6191 (patch) | |
| tree | 38e08e27e5d8ec3843f65f9e09940d3635f69428 /lldb/source/Core/DumpDataExtractor.cpp | |
| parent | 18b72d337ef31bc4f1b898ceb17796ffe12dd104 (diff) | |
| download | bcm5719-llvm-1462f5a4c138bb20f38a579a29d12ab4e5fb6191.tar.gz bcm5719-llvm-1462f5a4c138bb20f38a579a29d12ab4e5fb6191.zip | |
[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
Diffstat (limited to 'lldb/source/Core/DumpDataExtractor.cpp')
| -rw-r--r-- | lldb/source/Core/DumpDataExtractor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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: { |

