Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public: | ||||
void clear() { | void clear() { | ||||
HeaderData = {}; | HeaderData = {}; | ||||
} | } | ||||
uint64_t getHeaderOffset() const { return HeaderOffset; } | uint64_t getHeaderOffset() const { return HeaderOffset; } | ||||
uint8_t getAddrSize() const { return HeaderData.AddrSize; } | uint8_t getAddrSize() const { return HeaderData.AddrSize; } | ||||
uint64_t getLength() const { return HeaderData.Length; } | uint64_t getLength() const { return HeaderData.Length; } | ||||
uint16_t getVersion() const { return HeaderData.Version; } | uint16_t getVersion() const { return HeaderData.Version; } | ||||
uint32_t getOffsetEntryCount() const { return HeaderData.OffsetEntryCount; } | |||||
StringRef getSectionName() const { return SectionName; } | StringRef getSectionName() const { return SectionName; } | ||||
StringRef getListTypeString() const { return ListTypeString; } | StringRef getListTypeString() const { return ListTypeString; } | ||||
dwarf::DwarfFormat getFormat() const { return Format; } | dwarf::DwarfFormat getFormat() const { return Format; } | ||||
/// Return the size of the table header including the length but not including | /// Return the size of the table header including the length but not including | ||||
/// the offsets. | /// the offsets. | ||||
static uint8_t getHeaderSize(dwarf::DwarfFormat Format) { | static uint8_t getHeaderSize(dwarf::DwarfFormat Format) { | ||||
switch (Format) { | switch (Format) { | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public: | ||||
Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr); | Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr); | ||||
/// Look up a list based on a given offset. Extract it and enter it into the | /// Look up a list based on a given offset. Extract it and enter it into the | ||||
/// list map if necessary. | /// list map if necessary. | ||||
Expected<DWARFListType> findList(DWARFDataExtractor Data, | Expected<DWARFListType> findList(DWARFDataExtractor Data, | ||||
uint64_t Offset) const; | uint64_t Offset) const; | ||||
uint64_t getHeaderOffset() const { return Header.getHeaderOffset(); } | uint64_t getHeaderOffset() const { return Header.getHeaderOffset(); } | ||||
uint8_t getAddrSize() const { return Header.getAddrSize(); } | uint8_t getAddrSize() const { return Header.getAddrSize(); } | ||||
uint32_t getOffsetEntryCount() const { return Header.getOffsetEntryCount(); } | |||||
dwarf::DwarfFormat getFormat() const { return Header.getFormat(); } | dwarf::DwarfFormat getFormat() const { return Header.getFormat(); } | ||||
void dump(DWARFDataExtractor Data, raw_ostream &OS, | void dump(DWARFDataExtractor Data, raw_ostream &OS, | ||||
llvm::function_ref<Optional<object::SectionedAddress>(uint32_t)> | llvm::function_ref<Optional<object::SectionedAddress>(uint32_t)> | ||||
LookupPooledAddress, | LookupPooledAddress, | ||||
DIDumpOptions DumpOpts = {}) const; | DIDumpOptions DumpOpts = {}) const; | ||||
/// Return the contents of the offset entry designated by a given index. | /// Return the contents of the offset entry designated by a given index. | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |