LLVM
15.0.0git
|
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_t > | getParentIdx () const |
Returns index of the parent die. More... | |
Optional< uint32_t > | getSiblingIdx () 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 DWARFAbbreviationDeclaration * | getAbbreviationDeclarationPtr () const |
DWARFDebugInfoEntry - A DIE with only the minimum required data.
Definition at line 22 of file DWARFDebugInfoEntry.h.
|
default |
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 23 of file DWARFDebugInfoEntry.cpp.
References assert(), llvm::createStringError(), llvm::DWARFUnit::getAbbreviations(), llvm::DWARFUnit::getAbbreviationsOffset(), llvm::DWARFUnit::getContext(), llvm::DWARFUnit::getFormParams(), llvm::DWARFUnit::getNextUnitOffset(), llvm::DWARFUnit::getOffset(), llvm::DataExtractor::getULEB128(), llvm::DWARFContext::getWarningHandler(), llvm::invalid_argument, llvm::DataExtractor::isValidOffset(), and llvm::DWARFFormValue::skipValue().
|
inline |
Definition at line 72 of file DWARFDebugInfoEntry.h.
Referenced by llvm::DWARFDie::getAbbreviationDeclarationPtr(), and llvm::DWARFDie::attribute_iterator::operator++().
|
inline |
Definition at line 45 of file DWARFDebugInfoEntry.h.
Referenced by llvm::DWARFDie::getOffset().
Returns index of the parent die.
Definition at line 48 of file DWARFDebugInfoEntry.h.
References llvm::None.
Referenced by llvm::DWARFUnit::getParent(), and llvm::DWARFUnit::getPreviousSibling().
Returns index of the sibling die.
Definition at line 56 of file DWARFDebugInfoEntry.h.
References llvm::None.
Referenced by llvm::DWARFUnit::getLastChild(), and llvm::DWARFUnit::getSibling().
|
inline |
Definition at line 66 of file DWARFDebugInfoEntry.h.
References llvm::DWARFAbbreviationDeclaration::getTag().
|
inline |
Definition at line 70 of file DWARFDebugInfoEntry.h.
References llvm::DWARFAbbreviationDeclaration::hasChildren().
Referenced by llvm::DWARFUnit::getFirstChild(), llvm::DWARFUnit::getLastChild(), and llvm::DWARFDie::hasChildren().
|
inline |
Set index of sibling.
Definition at line 64 of file DWARFDebugInfoEntry.h.