LLVM
13.0.0git
|
A helper struct providing information about the byte size of DW_FORM values that vary in size depending on the DWARF version, address byte size, or DWARF32/DWARF64. More...
#include "llvm/BinaryFormat/Dwarf.h"
Public Member Functions | |
uint8_t | getRefAddrByteSize () const |
The definition of the size of form DW_FORM_ref_addr depends on the version. More... | |
uint8_t | getDwarfOffsetByteSize () const |
The size of a reference is determined by the DWARF 32/64-bit format. More... | |
operator bool () const | |
Public Attributes | |
uint16_t | Version |
uint8_t | AddrSize |
DwarfFormat | Format |
A helper struct providing information about the byte size of DW_FORM values that vary in size depending on the DWARF version, address byte size, or DWARF32/DWARF64.
|
inline |
The size of a reference is determined by the DWARF 32/64-bit format.
Definition at line 663 of file Dwarf.h.
References Format, and llvm::dwarf::getDwarfOffsetByteSize().
Referenced by llvm::DWARFYAML::emitDebugInfo(), llvm::DWARFUnitHeader::getDwarfOffsetByteSize(), llvm::StrOffsetsContributionDescriptor::getDwarfOffsetByteSize(), llvm::dwarf::getFixedFormByteSize(), and getRefAddrByteSize().
|
inline |
The definition of the size of form DW_FORM_ref_addr depends on the version.
In DWARF v2 it's the size of an address; after that, it's the size of a reference.
Definition at line 656 of file Dwarf.h.
References AddrSize, getDwarfOffsetByteSize(), and Version.
Referenced by llvm::dwarf::getFixedFormByteSize(), and llvm::DWARFUnitHeader::getRefAddrByteSize().
|
inlineexplicit |
uint8_t llvm::dwarf::FormParams::AddrSize |
Definition at line 650 of file Dwarf.h.
Referenced by llvm::DWARFUnitHeader::getAddressByteSize(), llvm::DWARFDebugLine::Prologue::getAddressSize(), llvm::dwarf::getFixedFormByteSize(), getRefAddrByteSize(), operator bool(), and llvm::DWARFDebugLine::Prologue::parse().
DwarfFormat llvm::dwarf::FormParams::Format |
Definition at line 651 of file Dwarf.h.
Referenced by llvm::DWARFDebugLine::Prologue::dump(), dumpLocation(), getDwarfOffsetByteSize(), llvm::DWARFUnitHeader::getFormat(), llvm::StrOffsetsContributionDescriptor::getFormat(), llvm::DWARFUnitHeader::getUnitLengthFieldByteSize(), llvm::DWARFDebugLine::Prologue::isDWARF64(), and llvm::DWARFDebugLine::Prologue::parse().
uint16_t llvm::dwarf::FormParams::Version |
Definition at line 649 of file Dwarf.h.
Referenced by llvm::DWARFDebugNames::NameIndex::getEntry(), getRefAddrByteSize(), llvm::DWARFUnitHeader::getVersion(), llvm::DWARFDebugLine::Prologue::getVersion(), llvm::StrOffsetsContributionDescriptor::getVersion(), operator bool(), and llvm::DWARFDebugLine::Prologue::parse().