Go to the documentation of this file.
9 #ifndef LLVM_DEBUGINFO_DWARF_DWARFDEBUGADDR_H
10 #define LLVM_DEBUGINFO_DWARF_DWARFDEBUGADDR_H
21 class DWARFDataExtractor;
41 std::vector<uint64_t> Addrs;
44 void invalidateLength() { Length = 0; }
53 uint16_t CUVersion, uint8_t CUAddrSize,
64 uint16_t CUVersion, uint8_t CUAddrSize);
96 #endif // LLVM_DEBUGINFO_DWARF_DWARFDEBUGADDR_H
This is an optimization pass for GlobalISel generic memory operations.
uint64_t getLength() const
Return the length of this table.
Error extract(const DWARFDataExtractor &Data, uint64_t *OffsetPtr, uint16_t CUVersion, uint8_t CUAddrSize, std::function< void(Error)> WarnCallback)
Extract the entire table, including all addresses.
Optional< uint64_t > getFullLength() const
Return the full length of this table, including the length field.
Tagged union holding either a T or a Error.
Error extractPreStandard(const DWARFDataExtractor &Data, uint64_t *OffsetPtr, uint16_t CUVersion, uint8_t CUAddrSize)
Extract a pre-DWARFv5 address table.
This class implements an extremely fast bulk output stream that can only output to a stream.
DwarfFormat
Constants that define the DWARF format as 32 or 64 bit.
dwarf::DwarfFormat getFormat() const
Return the DWARF format of this table.
A class representing an address table as specified in DWARF v5.
uint8_t getSegmentSelectorSize() const
Return the segment selector size of this table.
uint8_t getAddressSize() const
Return the address size of this table.
print Print MemDeps of function
void dump(raw_ostream &OS, DIDumpOptions DumpOpts={}) const
Lightweight error class with error context and mandatory checking.
uint16_t getVersion() const
Return the version of this table.
ArrayRef< uint64_t > getAddressEntries() const
Return the parsed addresses of this table.
Error extractV5(const DWARFDataExtractor &Data, uint64_t *OffsetPtr, uint8_t CUAddrSize, std::function< void(Error)> WarnCallback)
Extract a DWARFv5 address table.
Expected< uint64_t > getAddrEntry(uint32_t Index) const
Return the address based on a given index.
Container for dump options that control which debug information will be dumped.