LLVM 22.0.0git
llvm::DWARFDebugInfoEntry Class Reference

DWARFDebugInfoEntry - A DIE with only the minimum required data. More...

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

Public Member Functions

 DWARFDebugInfoEntry ()=default
LLVM_ABI bool extractFast (const DWARFUnit &U, uint64_t *OffsetPtr, const DWARFDataExtractor &DebugInfoData, uint64_t UEndOffset, uint32_t ParentIdx)
 Extracts a debug info entry, which is a child of a given unit, starting at a given offset.
uint64_t getOffset () const
std::optional< uint32_tgetParentIdx () const
 Returns index of the parent die.
std::optional< uint32_tgetSiblingIdx () const
 Returns index of the sibling die.
void setSiblingIdx (uint32_t Idx)
 Set index of sibling.
dwarf::Tag getTag () const
bool hasChildren () const
const DWARFAbbreviationDeclarationgetAbbreviationDeclarationPtr () const

Detailed Description

DWARFDebugInfoEntry - A DIE with only the minimum required data.

Definition at line 23 of file DWARFDebugInfoEntry.h.

Constructor & Destructor Documentation

◆ DWARFDebugInfoEntry()

llvm::DWARFDebugInfoEntry::DWARFDebugInfoEntry ( )
default

References LLVM_ABI.

Member Function Documentation

◆ extractFast()

bool DWARFDebugInfoEntry::extractFast ( const DWARFUnit & U,
uint64_t * OffsetPtr,
const DWARFDataExtractor & DebugInfoData,
uint64_t UEndOffset,
uint32_t ParentIdx )

Extracts a debug info entry, which is a child of a given unit, starting at a given offset.

If DIE can't be extracted, returns false and doesn't change OffsetPtr. High performance extraction should use this call.

Definition at line 22 of file DWARFDebugInfoEntry.cpp.

References assert(), llvm::createStringError(), llvm::DataExtractor::getULEB128(), llvm::invalid_argument, llvm::DataExtractor::isValidOffset(), and llvm::DWARFFormValue::skipValue().

◆ getAbbreviationDeclarationPtr()

◆ getOffset()

uint64_t llvm::DWARFDebugInfoEntry::getOffset ( ) const
inline

◆ getParentIdx()

◆ getSiblingIdx()

std::optional< uint32_t > llvm::DWARFDebugInfoEntry::getSiblingIdx ( ) const
inline

Returns index of the sibling die.

Definition at line 57 of file DWARFDebugInfoEntry.h.

Referenced by llvm::DWARFUnit::getLastChildEntry(), and llvm::DWARFUnit::getSiblingEntry().

◆ getTag()

◆ hasChildren()

bool llvm::DWARFDebugInfoEntry::hasChildren ( ) const
inline

◆ setSiblingIdx()

void llvm::DWARFDebugInfoEntry::setSiblingIdx ( uint32_t Idx)
inline

Set index of sibling.

Definition at line 65 of file DWARFDebugInfoEntry.h.


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