20 template <
typename... Ts>
24 Stream <<
format(Fmt, Vals...);
38 return createError(
"invalid range list offset 0x%" PRIx32, *offset_ptr);
41 if (AddressSize != 4 && AddressSize != 8)
42 return createError(
"invalid address size: %d", AddressSize);
54 if (*offset_ptr != prev_offset + 2 * AddressSize) {
56 return createError(
"invalid range list entry at offset 0x%" PRIx32,
61 Entries.push_back(Entry);
68 const char *format_str = (AddressSize == 4
69 ?
"%08x %08" PRIx64
" %08" PRIx64
"\n" 70 :
"%08x %016" PRIx64
" %016" PRIx64
"\n");
71 OS <<
format(format_str, Offset, RLE.StartAddress, RLE.EndAddress);
73 OS <<
format(
"%08x <End of list>\n", Offset);
80 if (RLE.isBaseAddressSelectionEntry(AddressSize)) {
81 BaseAddr = {RLE.EndAddress, RLE.SectionIndex};
86 E.
LowPC = RLE.StartAddress;
Compute iterated dominance frontiers using a linear time algorithm.
uint64_t SectionIndex
A section index this range belongs to.
void dump(raw_ostream &OS) const
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
DWARFAddressRangesVector getAbsoluteRanges(llvm::Optional< BaseAddress > BaseAddr) const
getAbsoluteRanges - Returns absolute address ranges defined by this range list.
std::string & str()
Flushes the stream contents to the target string and returns the string's reference.
static ErrorSuccess success()
Create a success value.
static Error createError(char const *Fmt, const Ts &... Vals)
uint64_t EndAddress
An ending address offset.
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...
A raw_ostream that writes to an std::string.
std::vector< DWARFAddressRange > DWARFAddressRangesVector
DWARFAddressRangesVector - represents a set of absolute address ranges.
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
uint64_t StartAddress
A beginning address offset.
Error extract(const DWARFDataExtractor &data, uint32_t *offset_ptr)
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...