forked from OSchip/llvm-project
[lldb] Migrate VMRange::Dump to raw_ostream
This commit is contained in:
parent
0d2472ff6f
commit
777d1f7272
|
@ -10,15 +10,12 @@
|
|||
#define liblldb_VMRange_h_
|
||||
|
||||
#include "lldb/lldb-types.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
namespace lldb_private {
|
||||
class Stream;
|
||||
}
|
||||
|
||||
namespace lldb_private {
|
||||
|
||||
// A vm address range. These can represent offsets ranges or actual
|
||||
|
@ -81,7 +78,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
void Dump(Stream *s, lldb::addr_t base_addr = 0,
|
||||
void Dump(llvm::raw_ostream &s, lldb::addr_t base_addr = 0,
|
||||
uint32_t addr_width = 8) const;
|
||||
|
||||
static bool ContainsValue(const VMRange::collection &coll,
|
||||
|
|
|
@ -323,7 +323,7 @@ void Section::Dump(Stream *s, Target *target, uint32_t depth) const {
|
|||
}
|
||||
|
||||
VMRange range(addr, addr + m_byte_size);
|
||||
range.Dump(s, 0);
|
||||
range.Dump(s->AsRawOstream(), 0);
|
||||
}
|
||||
|
||||
s->Printf("%c %c%c%c 0x%8.8" PRIx64 " 0x%8.8" PRIx64 " 0x%8.8x ",
|
||||
|
|
|
@ -131,7 +131,7 @@ void DWARFExpression::GetDescription(Stream *s, lldb::DescriptionLevel level,
|
|||
s->PutCString(", ");
|
||||
VMRange addr_range(curr_base_addr + begin_addr_offset,
|
||||
curr_base_addr + end_addr_offset);
|
||||
addr_range.Dump(s, 0, 8);
|
||||
addr_range.Dump(s->AsRawOstream(), 0, 8);
|
||||
s->PutChar('{');
|
||||
lldb::offset_t location_length = m_data.GetU16(&offset);
|
||||
DumpLocation(s, offset, location_length, level, abi);
|
||||
|
|
|
@ -35,9 +35,10 @@ bool VMRange::ContainsRange(const VMRange::collection &coll,
|
|||
}) != coll.end();
|
||||
}
|
||||
|
||||
void VMRange::Dump(Stream *s, lldb::addr_t offset, uint32_t addr_width) const {
|
||||
DumpAddressRange(s->AsRawOstream(), offset + GetBaseAddress(),
|
||||
offset + GetEndAddress(), addr_width);
|
||||
void VMRange::Dump(llvm::raw_ostream &s, lldb::addr_t offset,
|
||||
uint32_t addr_width) const {
|
||||
DumpAddressRange(s, offset + GetBaseAddress(), offset + GetEndAddress(),
|
||||
addr_width);
|
||||
}
|
||||
|
||||
bool lldb_private::operator==(const VMRange &lhs, const VMRange &rhs) {
|
||||
|
|
Loading…
Reference in New Issue