LLVM
8.0.1
|
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 514 of file Dwarf.h.
References llvm::dwarf::DWARF32, llvm::dwarf::DWARF64, and llvm_unreachable.
Referenced by llvm::DWARFFormValue::extractValue(), 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 507 of file Dwarf.h.
References AddrSize, and getDwarfOffsetByteSize().
Referenced by llvm::DWARFFormValue::extractValue(), llvm::dwarf::getFixedFormByteSize(), and llvm::DWARFUnitHeader::getRefAddrByteSize().
|
inlineexplicit |
Definition at line 524 of file Dwarf.h.
References AddrSize, llvm::dwarf::AtomValueString(), llvm::dwarf::AttributeValueString(), llvm::dwarf::getFixedFormByteSize(), llvm::dwarf::isValidFormForVersion(), and Version.
uint8_t llvm::dwarf::FormParams::AddrSize |
Definition at line 501 of file Dwarf.h.
Referenced by llvm::DWARFUnitHeader::extract(), llvm::DWARFFormValue::extractValue(), 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 502 of file Dwarf.h.
Referenced by llvm::DWARFUnitHeader::extract(), llvm::DWARFUnitHeader::getFormat(), llvm::StrOffsetsContributionDescriptor::getFormat(), llvm::DWARFDebugLine::Prologue::isDWARF64(), and llvm::DWARFDebugLine::Prologue::parse().
uint16_t llvm::dwarf::FormParams::Version |
Definition at line 500 of file Dwarf.h.
Referenced by llvm::DWARFUnitHeader::extract(), llvm::DWARFDebugNames::NameIndex::getEntry(), llvm::DWARFUnitHeader::getVersion(), llvm::DWARFDebugLine::Prologue::getVersion(), llvm::StrOffsetsContributionDescriptor::getVersion(), operator bool(), llvm::DWARFDebugLine::Prologue::parse(), and llvm::AppleAcceleratorTable::readAtoms().