|
LLVM
10.0.0
|
A class representing the header of a list table such as the range list table in the .debug_rnglists section. More...
#include "llvm/DebugInfo/DWARF/DWARFListTable.h"
Public Member Functions | |
| DWARFListTableHeader (StringRef SectionName, StringRef ListTypeString) | |
| void | clear () |
| uint64_t | getHeaderOffset () const |
| uint8_t | getAddrSize () const |
| uint64_t | getLength () const |
| uint16_t | getVersion () const |
| StringRef | getSectionName () const |
| StringRef | getListTypeString () const |
| dwarf::DwarfFormat | getFormat () const |
| void | dump (raw_ostream &OS, DIDumpOptions DumpOpts={}) const |
| Optional< uint64_t > | getOffsetEntry (uint32_t Index) const |
| Error | extract (DWARFDataExtractor Data, uint64_t *OffsetPtr) |
| Extract the table header and the array of offsets. More... | |
| uint64_t | length () const |
| Returns the length of the table, including the length field, or 0 if the length has not been determined (e.g. More... | |
Static Public Member Functions | |
| static uint8_t | getHeaderSize (dwarf::DwarfFormat Format) |
| Return the size of the table header including the length but not including the offsets. More... | |
A class representing the header of a list table such as the range list table in the .debug_rnglists section.
Definition at line 56 of file DWARFListTable.h.
|
inline |
Definition at line 91 of file DWARFListTable.h.
|
inline |
Definition at line 94 of file DWARFListTable.h.
Referenced by llvm::DWARFListTableBase< DWARFDebugRnglist >::clear().
| void DWARFListTableHeader::dump | ( | raw_ostream & | OS, |
| DIDumpOptions | DumpOpts = {} |
||
| ) | const |
Definition at line 89 of file DWARFListTable.cpp.
References llvm::StringRef::data(), llvm::format(), getHeaderSize(), and llvm::DIDumpOptions::Verbose.
Referenced by dumpLoclistsSection().
| Error DWARFListTableHeader::extract | ( | DWARFDataExtractor | Data, |
| uint64_t * | OffsetPtr | ||
| ) |
Extract the table header and the array of offsets.
Definition at line 18 of file DWARFListTable.cpp.
References assert(), llvm::createStringError(), llvm::dwarf::DW_LENGTH_DWARF64, llvm::dwarf::DW_LENGTH_lo_reserved, llvm::dwarf::DWARF32, llvm::dwarf::DWARF64, getHeaderSize(), llvm::DWARFDataExtractor::getRelocatedValue(), llvm::DataExtractor::getU64(), llvm::dwarf::getUnitLengthFieldByteSize(), llvm::invalid_argument, llvm::DataExtractor::isValidOffsetForDataOfSize(), and length().
Referenced by dumpLoclistsSection(), and llvm::DWARFListTableBase< DWARFDebugRnglist >::extractHeaderAndOffsets().
|
inline |
Definition at line 99 of file DWARFListTable.h.
Referenced by dumpLoclistsSection(), and llvm::DWARFListTableBase< DWARFDebugRnglist >::getAddrSize().
|
inline |
Definition at line 104 of file DWARFListTable.h.
References llvm::Format.
Referenced by llvm::DWARFListTableBase< DWARFDebugRnglist >::getFormat().
|
inline |
Definition at line 98 of file DWARFListTable.h.
Referenced by dumpLoclistsSection(), and llvm::DWARFListTableBase< DWARFDebugRnglist >::getHeaderOffset().
|
inlinestatic |
Return the size of the table header including the length but not including the offsets.
Definition at line 108 of file DWARFListTable.h.
References llvm::dump(), llvm::dwarf::DWARF32, llvm::dwarf::DWARF64, and llvm_unreachable.
Referenced by dump(), extract(), llvm::DWARFListTableBase< DWARFDebugRnglist >::getHeaderSize(), parseListTableHeader(), and llvm::DWARFUnit::tryExtractDIEsIfNeeded().
|
inline |
Definition at line 100 of file DWARFListTable.h.
|
inline |
Definition at line 103 of file DWARFListTable.h.
Definition at line 119 of file DWARFListTable.h.
References llvm::Data, extract, and llvm::None.
Referenced by llvm::DWARFListTableBase< DWARFDebugRnglist >::getOffsetEntry().
|
inline |
Definition at line 102 of file DWARFListTable.h.
References AMDGPU::ElfNote::SectionName.
|
inline |
Definition at line 101 of file DWARFListTable.h.
Referenced by dumpLoclistsSection().
| uint64_t DWARFListTableHeader::length | ( | ) | const |
Returns the length of the table, including the length field, or 0 if the length has not been determined (e.g.
because the table has not yet been parsed, or there was a problem in parsing).
Definition at line 112 of file DWARFListTable.cpp.
References llvm::dwarf::getUnitLengthFieldByteSize().
Referenced by dumpLoclistsSection(), extract(), and llvm::DWARFListTableBase< DWARFDebugRnglist >::length().
1.8.13