LLVM
8.0.1
|
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 () |
uint32_t | getHeaderOffset () const |
uint8_t | getAddrSize () const |
uint32_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< uint32_t > | getOffsetEntry (uint32_t Index) const |
Error | extract (DWARFDataExtractor Data, uint32_t *OffsetPtr) |
Extract the table header and the array of offsets. More... | |
uint32_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... | |
A class representing the header of a list table such as the range list table in the .debug_rnglists section.
Definition at line 57 of file DWARFListTable.h.
|
inline |
Definition at line 92 of file DWARFListTable.h.
|
inline |
Definition at line 95 of file DWARFListTable.h.
Referenced by llvm::DWARFListTableBase< DWARFDebugRnglist >::clear().
void DWARFListTableHeader::dump | ( | raw_ostream & | OS, |
DIDumpOptions | DumpOpts = {} |
||
) | const |
Definition at line 81 of file DWARFListTable.cpp.
References llvm::StringRef::data(), llvm::format(), and llvm::DIDumpOptions::Verbose.
Referenced by dumpLoclistsSection().
Error DWARFListTableHeader::extract | ( | DWARFDataExtractor | Data, |
uint32_t * | OffsetPtr | ||
) |
Extract the table header and the array of offsets.
Definition at line 19 of file DWARFListTable.cpp.
References llvm::createStringError(), llvm::dwarf::DWARF32, llvm::DataExtractor::getU32(), llvm::invalid_argument, llvm::DataExtractor::isValidOffsetForDataOfSize(), length(), and llvm::not_supported.
Referenced by dumpLoclistsSection(), and llvm::DWARFListTableBase< DWARFDebugRnglist >::extractHeaderAndOffsets().
|
inline |
Definition at line 100 of file DWARFListTable.h.
Referenced by dumpLoclistsSection(), and llvm::DWARFListTableBase< DWARFDebugRnglist >::getAddrSize().
|
inline |
Definition at line 105 of file DWARFListTable.h.
References llvm::dump(), and llvm::Format.
Referenced by llvm::DWARFListTableBase< DWARFDebugRnglist >::getHeaderSize().
|
inline |
Definition at line 99 of file DWARFListTable.h.
Referenced by llvm::DWARFListTableBase< DWARFDebugRnglist >::getHeaderOffset().
|
inline |
Definition at line 101 of file DWARFListTable.h.
|
inline |
Definition at line 104 of file DWARFListTable.h.
Definition at line 108 of file DWARFListTable.h.
References llvm::Data, extract, and llvm::None.
Referenced by llvm::DWARFListTableBase< DWARFDebugRnglist >::getOffsetEntry().
|
inline |
Definition at line 103 of file DWARFListTable.h.
References AMDGPU::ElfNote::SectionName.
|
inline |
Definition at line 102 of file DWARFListTable.h.
Referenced by dumpLoclistsSection().
uint32_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 104 of file DWARFListTable.cpp.
Referenced by extract(), and llvm::DWARFListTableBase< DWARFDebugRnglist >::length().