LLVM: lib/DebugInfo/DWARF/DWARFTypeUnit.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

14#include

15

16using namespace llvm;

17

22

24 OS << "name = '" << Name << "'"

25 << ", type_signature = " << format("0x%016" PRIx64, getTypeHash())

26 << ", length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength())

27 << '\n';

28 return;

29 }

30

31 OS << format("0x%08" PRIx64, getOffset()) << ": Type Unit:"

32 << " length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength())

39 OS << " (invalid)";

41 << ", name = '" << Name << "'"

42 << ", type_signature = " << format("0x%016" PRIx64, getTypeHash())

45 << ")\n";

46

48 TU.dump(OS, 0, DumpOpts);

49 else

50 OS << "<type unit can't be parsed!>\n\n";

51}

Utility class that carries the DWARF compile/type unit and the debug info entry in an object.

LLVM_ABI const char * getName(DINameKind Kind) const

Return the DIE name resolving DW_AT_specification or DW_AT_abstract_origin references if necessary.

uint64_t getTypeOffset() const

void dump(raw_ostream &OS, DIDumpOptions DumpOpts={}) override

Definition DWARFTypeUnit.cpp:18

uint64_t getTypeHash() const

uint8_t getUnitType() const

uint64_t getLength() const

DWARFDie getUnitDIE(bool ExtractUnitDIEOnly=true)

uint8_t getAddressByteSize() const

const DWARFAbbreviationDeclarationSet * getAbbreviations() const

DWARFDie getDIEForOffset(uint64_t Offset)

Return the DIE object for a given offset Offset inside the unit's DIE vector.

dwarf::DwarfFormat getFormat() const

uint16_t getVersion() const

uint64_t getAbbrOffset() const

uint64_t getNextUnitOffset() const

uint64_t getOffset() const

This class implements an extremely fast bulk output stream that can only output to a stream.

LLVM_ABI StringRef FormatString(DwarfFormat Format)

LLVM_ABI StringRef UnitTypeString(unsigned)

uint8_t getDwarfOffsetByteSize(DwarfFormat Format)

The size of a reference determined by the DWARF 32/64-bit format.

This is an optimization pass for GlobalISel generic memory operations.

format_object< Ts... > format(const char *Fmt, const Ts &... Vals)

These are helper functions used to produce formatted output.

Container for dump options that control which debug information will be dumped.