LLVM
8.0.1
|
A class representing a table of lists as specified in the DWARF v5 standard for location lists and range lists. More...
#include "llvm/DebugInfo/DWARF/DWARFListTable.h"
Public Member Functions | |
void | clear () |
Error | extractHeaderAndOffsets (DWARFDataExtractor Data, uint32_t *OffsetPtr) |
Extract the table header and the array of offsets. More... | |
Error | extract (DWARFDataExtractor Data, uint32_t *OffsetPtr) |
Extract an entire table, including all list entries. More... | |
Expected< DWARFListType > | findList (DWARFDataExtractor Data, uint32_t Offset) |
Look up a list based on a given offset. More... | |
uint32_t | getHeaderOffset () const |
uint8_t | getAddrSize () const |
void | dump (raw_ostream &OS, llvm::function_ref< Optional< SectionedAddress >(uint32_t)> LookupPooledAddress, DIDumpOptions DumpOpts={}) const |
Optional< uint32_t > | getOffsetEntry (uint32_t Index) const |
Return the contents of the offset entry designated by a given index. More... | |
uint8_t | getHeaderSize () const |
Return the size of the table header including the length but not including the offsets. More... | |
uint32_t | length () |
Protected Member Functions | |
DWARFListTableBase (StringRef SectionName, StringRef HeaderString, StringRef ListTypeString) | |
A class representing a table of lists as specified in the DWARF v5 standard for location lists and range lists.
The table consists of a header followed by an array of offsets into a DWARF section, followed by zero or more list entries. The list entries are kept in a map where the keys are the lists' section offsets.
Definition at line 128 of file DWARFListTable.h.
|
inlineprotected |
Definition at line 138 of file DWARFListTable.h.
|
inline |
Definition at line 143 of file DWARFListTable.h.
void llvm::DWARFListTableBase< DWARFListType >::dump | ( | raw_ostream & | OS, |
llvm::function_ref< Optional< SectionedAddress >(uint32_t)> | LookupPooledAddress, | ||
DIDumpOptions | DumpOpts = {} |
||
) | const |
Definition at line 236 of file DWARFListTable.h.
Error llvm::DWARFListTableBase< DWARFListType >::extract | ( | DWARFDataExtractor | Data, |
uint32_t * | OffsetPtr | ||
) |
Extract an entire table, including all list entries.
Definition at line 186 of file DWARFListTable.h.
|
inline |
Extract the table header and the array of offsets.
Definition at line 148 of file DWARFListTable.h.
Referenced by parseRngListTableHeader().
Expected< DWARFListType > llvm::DWARFListTableBase< DWARFListType >::findList | ( | DWARFDataExtractor | Data, |
uint32_t | Offset | ||
) |
Look up a list based on a given offset.
Extract it and enter it into the list map if necessary.
Definition at line 264 of file DWARFListTable.h.
|
inline |
Definition at line 158 of file DWARFListTable.h.
|
inline |
Definition at line 157 of file DWARFListTable.h.
|
inline |
Return the size of the table header including the length but not including the offsets.
This is dependent on the table format, which is unambiguously derived from parsing the table.
Definition at line 172 of file DWARFListTable.h.
|
inline |
Return the contents of the offset entry designated by a given index.
Definition at line 166 of file DWARFListTable.h.
|
inline |
Definition at line 182 of file DWARFListTable.h.