diff options
| author | Jim Ingham <jingham@apple.com> | 2011-08-27 01:24:54 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2011-08-27 01:24:54 +0000 |
| commit | d3d25d910995c7a47a569881cbf03bb4d54f8ec4 (patch) | |
| tree | 2f53b4eb3eedf570059e33159656587d28dfbb05 /lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp | |
| parent | a6c422b7de36934bd6e83b955486dcd4380305ba (diff) | |
| download | bcm5719-llvm-d3d25d910995c7a47a569881cbf03bb4d54f8ec4.tar.gz bcm5719-llvm-d3d25d910995c7a47a569881cbf03bb4d54f8ec4.zip | |
Fix a bunch of places where we were passing Stream *'s but were
never checking them for NULL. Pass a reference instead.
llvm-svn: 138694
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp index ed76f6b7070..3502d56a82e 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp @@ -215,10 +215,10 @@ DWARFDebugRanges::RangeList::HighestAddress(const dw_addr_t cu_base_addr) const void -DWARFDebugRanges::Dump(Stream *s, const DataExtractor& debug_ranges_data, uint32_t* offset_ptr, dw_addr_t cu_base_addr) +DWARFDebugRanges::Dump(Stream &s, const DataExtractor& debug_ranges_data, uint32_t* offset_ptr, dw_addr_t cu_base_addr) { - uint32_t addr_size = s->GetAddressByteSize(); - bool verbose = s->GetVerbose(); + uint32_t addr_size = s.GetAddressByteSize(); + bool verbose = s.GetVerbose(); dw_addr_t base_addr = cu_base_addr; while (debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size)) @@ -230,23 +230,23 @@ DWARFDebugRanges::Dump(Stream *s, const DataExtractor& debug_ranges_data, uint32 if (begin == 0xFFFFFFFFull && addr_size == 4) begin = DW_INVALID_ADDRESS; - s->Indent(); + s.Indent(); if (verbose) { - s->AddressRange(begin, end, sizeof (dw_addr_t), " offsets = "); + s.AddressRange(begin, end, sizeof (dw_addr_t), " offsets = "); } if (begin == 0 && end == 0) { - s->PutCString(" End"); + s.PutCString(" End"); break; } else if (begin == DW_INVALID_ADDRESS) { // A base address selection entry base_addr = end; - s->Address(base_addr, sizeof (dw_addr_t), " Base address = "); + s.Address(base_addr, sizeof (dw_addr_t), " Base address = "); } else { @@ -254,7 +254,7 @@ DWARFDebugRanges::Dump(Stream *s, const DataExtractor& debug_ranges_data, uint32 dw_addr_t begin_addr = begin + base_addr; dw_addr_t end_addr = end + base_addr; - s->AddressRange(begin_addr, end_addr, sizeof (dw_addr_t), verbose ? " ==> addrs = " : NULL); + s.AddressRange(begin_addr, end_addr, sizeof (dw_addr_t), verbose ? " ==> addrs = " : NULL); } } } |

