LLVM 22.0.0git
|
Represents base address of the CU. More...
#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
Public Member Functions | |
StrOffsetsContributionDescriptor (uint64_t Base, uint64_t Size, uint8_t Version, dwarf::DwarfFormat Format) | |
StrOffsetsContributionDescriptor ()=default | |
uint8_t | getVersion () const |
dwarf::DwarfFormat | getFormat () const |
uint8_t | getDwarfOffsetByteSize () const |
LLVM_ABI Expected< StrOffsetsContributionDescriptor > | validateContributionSize (DWARFDataExtractor &DA) |
Determine whether a contribution to the string offsets table is consistent with the relevant section size and that its length is a multiple of the size of one of its entries. |
Public Attributes | |
uint64_t | Base = 0 |
uint64_t | Size = 0 |
The contribution size not including the header. | |
dwarf::FormParams | FormParams = {0, 0, dwarf::DwarfFormat::DWARF32} |
Format and version. |
Represents base address of the CU.
Represents a unit's contribution to the string offsets table.
Definition at line 191 of file DWARFUnit.h.
|
inline |
Definition at line 198 of file DWARFUnit.h.
References Base, llvm::Format, FormParams, Size, and llvm::Version.
|
default |
|
inline |
Definition at line 205 of file DWARFUnit.h.
References FormParams.
Referenced by validateContributionSize().
|
inline |
Definition at line 204 of file DWARFUnit.h.
References FormParams.
|
inline |
Definition at line 203 of file DWARFUnit.h.
References FormParams.
Expected< StrOffsetsContributionDescriptor > StrOffsetsContributionDescriptor::validateContributionSize | ( | DWARFDataExtractor & | DA | ) |
Determine whether a contribution to the string offsets table is consistent with the relevant section size and that its length is a multiple of the size of one of its entries.
Definition at line 1079 of file DWARFUnit.cpp.
References llvm::alignTo(), Base, llvm::createStringError(), getDwarfOffsetByteSize(), llvm::invalid_argument, and Size.
uint64_t llvm::StrOffsetsContributionDescriptor::Base = 0 |
Definition at line 192 of file DWARFUnit.h.
Referenced by StrOffsetsContributionDescriptor(), and validateContributionSize().
dwarf::FormParams llvm::StrOffsetsContributionDescriptor::FormParams = {0, 0, dwarf::DwarfFormat::DWARF32} |
Format and version.
Definition at line 196 of file DWARFUnit.h.
Referenced by getDwarfOffsetByteSize(), getFormat(), getVersion(), and StrOffsetsContributionDescriptor().
uint64_t llvm::StrOffsetsContributionDescriptor::Size = 0 |
The contribution size not including the header.
Definition at line 194 of file DWARFUnit.h.
Referenced by StrOffsetsContributionDescriptor(), and validateContributionSize().