32 if (AddressSize != 4 && AddressSize != 8)
43 if (*offset_ptr != prev_offset + 2 * AddressSize) {
49 Entries.push_back(entry);
56 const char *format_str = (AddressSize == 4
57 ?
"%08x %08" PRIx64
" %08" PRIx64
"\n"
58 :
"%08x %016" PRIx64
" %016" PRIx64
"\n");
59 OS <<
format(format_str, Offset, RLE.StartAddress, RLE.EndAddress);
61 OS <<
format(
"%08x <End of list>\n", Offset);
68 if (RLE.isBaseAddressSelectionEntry(AddressSize)) {
69 BaseAddress = RLE.EndAddress;
71 Res.push_back({BaseAddress + RLE.StartAddress,
72 BaseAddress + RLE.EndAddress, RLE.SectionIndex});
uint64_t SectionIndex
A section index this range belongs to.
bool isEndOfListEntry() const
The end of any given range list is marked by an end of list entry, which consists of a 0 for the begi...
format_object< Ts...> format(const char *Fmt, const Ts &...Vals)
These are helper functions used to produce formatted output.
DWARFAddressRangesVector getAbsoluteRanges(uint64_t BaseAddress) const
getAbsoluteRanges - Returns absolute address ranges defined by this range list.
void dump(raw_ostream &OS) const
uint64_t EndAddress
An ending address offset.
std::vector< DWARFAddressRange > DWARFAddressRangesVector
DWARFAddressRangesVector - represents a set of absolute address ranges.
This class implements an extremely fast bulk output stream that can only output to a stream...
uint64_t StartAddress
A beginning address offset.
bool extract(const DWARFDataExtractor &data, uint32_t *offset_ptr)