LLVM: lib/DebugInfo/DWARF/DWARFCompileUnit.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
12
15
16using namespace llvm;
17
20 return;
22 OS << format("0x%08" PRIx64, getOffset()) << ": Compile Unit:"
23 << " length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength())
30 OS << " (invalid)";
33 getUnitType() == dwarf::DW_UT_split_compile))
34 OS << ", DWO_id = " << format("0x%016" PRIx64, *getDWOId());
36 << ")\n";
37
39 CUDie.dump(OS, 0, DumpOpts);
42 if (NonSkeletonCUDie && CUDie != NonSkeletonCUDie)
43 NonSkeletonCUDie.dump(OS, 0, DumpOpts);
44 }
45 } else {
46 OS << "<compile unit can't be parsed!>\n\n";
47 }
48}
49
50
~DWARFCompileUnit() override
VTable anchor.
void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override
Dump this compile unit to OS.
Definition DWARFCompileUnit.cpp:18
Utility class that carries the DWARF compile/type unit and the debug info entry in an object.
LLVM_ABI void dump(raw_ostream &OS, unsigned indent=0, DIDumpOptions DumpOpts=DIDumpOptions()) const
Dump the DIE and all of its attributes to the supplied stream.
std::optional< uint64_t > getDWOId()
DWARFDie getNonSkeletonUnitDIE(bool ExtractUnitDIEOnly=true, StringRef DWOAlternativeLocation={})
uint8_t getUnitType() const
uint64_t getLength() const
DWARFDie getUnitDIE(bool ExtractUnitDIEOnly=true)
uint8_t getAddressByteSize() const
const DWARFAbbreviationDeclarationSet * getAbbreviations() const
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.