LLVM  5.0.0
Classes | Public Member Functions | List of all members
llvm::DWARFAcceleratorTable Class Reference

#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"

Public Member Functions

 DWARFAcceleratorTable (const DWARFDataExtractor &AccelSection, DataExtractor StringSection)
 
bool extract ()
 
uint32_t getNumBuckets ()
 
uint32_t getNumHashes ()
 
uint32_t getSizeHdr ()
 
uint32_t getHeaderDataLength ()
 
ArrayRef< std::pair
< HeaderData::AtomType,
HeaderData::Form > > 
getAtomsDesc ()
 
bool validateForms ()
 
uint32_t readAtoms (uint32_t &HashDataOffset)
 Return information related to the DWARF DIE we're looking for when performing a lookup by name. More...
 
void dump (raw_ostream &OS) const
 

Detailed Description

Definition at line 24 of file DWARFAcceleratorTable.h.

Constructor & Destructor Documentation

llvm::DWARFAcceleratorTable::DWARFAcceleratorTable ( const DWARFDataExtractor &  AccelSection,
DataExtractor  StringSection 
)
inline

Definition at line 48 of file DWARFAcceleratorTable.h.

Member Function Documentation

LLVM_DUMP_METHOD void DWARFAcceleratorTable::dump ( raw_ostream &  OS) const
bool DWARFAcceleratorTable::extract ( )
ArrayRef< std::pair< DWARFAcceleratorTable::HeaderData::AtomType, DWARFAcceleratorTable::HeaderData::Form > > DWARFAcceleratorTable::getAtomsDesc ( )

Definition at line 67 of file DWARFAcceleratorTable.cpp.

Referenced by readAtoms(), and validateForms().

uint32_t DWARFAcceleratorTable::getHeaderDataLength ( )

Definition at line 61 of file DWARFAcceleratorTable.cpp.

uint32_t DWARFAcceleratorTable::getNumBuckets ( )

Definition at line 58 of file DWARFAcceleratorTable.cpp.

uint32_t DWARFAcceleratorTable::getNumHashes ( )

Definition at line 59 of file DWARFAcceleratorTable.cpp.

uint32_t DWARFAcceleratorTable::getSizeHdr ( )

Definition at line 60 of file DWARFAcceleratorTable.cpp.

uint32_t DWARFAcceleratorTable::readAtoms ( uint32_t &  HashDataOffset)

Return information related to the DWARF DIE we're looking for when performing a lookup by name.

Parameters
HashDataOffsetan offset into the hash data table
Returns
DIEOffset the offset into the .debug_info section for the DIE related to the input hash data offset. Currently this function returns only the DIEOffset but it can be modified to return more data regarding the DIE

Definition at line 87 of file DWARFAcceleratorTable.cpp.

References llvm::dwarf::DW_ATOM_die_offset, llvm::dwarf::DW_INVALID_OFFSET, llvm::DWARFFormValue::extractValue(), llvm::DWARFFormValue::getAsUnsignedConstant(), and getAtomsDesc().

bool DWARFAcceleratorTable::validateForms ( )

The documentation for this class was generated from the following files: