25 TypeHash = debug_info.
getU64(offset_ptr);
26 TypeOffset = debug_info.
getU32(offset_ptr);
30 unsigned SizeOfLength = 4;
31 return TypeOffset <
getLength() + SizeOfLength;
39 OS <<
"name = '" << Name <<
"'"
40 <<
" type_signature = " <<
format(
"0x%016" PRIx64, TypeHash)
52 <<
" name = '" << Name <<
"'"
53 <<
" type_signature = " <<
format(
"0x%016" PRIx64, TypeHash)
54 <<
" type_offset = " <<
format(
"0x%04x", TypeOffset)
60 OS <<
"<type unit can't be parsed!>\n\n";
uint8_t getUnitType() const
uint32_t getNextUnitOffset() const
const DWARFAbbreviationDeclarationSet * getAbbreviations() const
uint32_t getLength() const
uint16_t getVersion() const
format_object< Ts...> format(const char *Fmt, const Ts &...Vals)
These are helper functions used to produce formatted output.
Utility class that carries the DWARF compile/type unit and the debug info entry in an object...
bool extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) override
DWARFDie getUnitDIE(bool ExtractUnitDIEOnly=true)
const char * getName(DINameKind Kind) const
Return the DIE name resolving DW_AT_sepcification or DW_AT_abstract_origin references if necessary...
StringRef UnitTypeString(unsigned)
virtual bool extractImpl(DataExtractor debug_info, uint32_t *offset_ptr)
void dump(raw_ostream &OS, bool Brief=false)
uint32_t getOffset() const
uint8_t getAddressByteSize() const
DWARFDie getDIEForOffset(uint32_t Offset)
Return the DIE object for a given offset inside the unit's DIE vector.
This class implements an extremely fast bulk output stream that can only output to a stream...