LLVM  14.0.0git
Public Member Functions | List of all members
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
 
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. More...
 
uint64_t getOffset () const
 
Optional< uint32_tgetParentIdx () const
 Returns index of the parent die. More...
 
Optional< uint32_tgetSiblingIdx () const
 Returns index of the sibling die. More...
 
void setSiblingIdx (uint32_t Idx)
 Set index of sibling. More...
 
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

Member Function Documentation

◆ extractFast()

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

◆ getAbbreviationDeclarationPtr()

const DWARFAbbreviationDeclaration* llvm::DWARFDebugInfoEntry::getAbbreviationDeclarationPtr ( ) const
inline

◆ getOffset()

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

Definition at line 46 of file DWARFDebugInfoEntry.h.

Referenced by llvm::DWARFDie::getOffset().

◆ getParentIdx()

Optional<uint32_t> llvm::DWARFDebugInfoEntry::getParentIdx ( ) const
inline

Returns index of the parent die.

Definition at line 49 of file DWARFDebugInfoEntry.h.

References llvm::None.

Referenced by llvm::DWARFUnit::getParent(), and llvm::DWARFUnit::getPreviousSibling().

◆ getSiblingIdx()

Optional<uint32_t> llvm::DWARFDebugInfoEntry::getSiblingIdx ( ) const
inline

Returns index of the sibling die.

Definition at line 57 of file DWARFDebugInfoEntry.h.

References llvm::None.

Referenced by llvm::DWARFUnit::getLastChild(), and llvm::DWARFUnit::getSibling().

◆ getTag()

dwarf::Tag llvm::DWARFDebugInfoEntry::getTag ( ) const
inline

◆ 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: