struct StrOffsetsContributionDescriptor

Declaration

struct StrOffsetsContributionDescriptor { /* full declaration omitted */ };

Description

Represents base address of the CU. Represents a unit's contribution to the string offsets table.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:170

Member Variables

public uint64_t Base = 0
public uint64_t Size = 0
The contribution size not including the header.
public dwarf::FormParams FormParams = {0, 0, dwarf::DwarfFormat::DWARF32}
Format and version.

Method Overview

Methods

StrOffsetsContributionDescriptor(
    uint64_t Base,
    uint64_t Size,
    uint8_t Version,
    dwarf::DwarfFormat Format)

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:177

Parameters

uint64_t Base
uint64_t Size
uint8_t Version
dwarf::DwarfFormat Format

StrOffsetsContributionDescriptor()

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:180

uint8_t getDwarfOffsetByteSize() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:184

dwarf::DwarfFormat getFormat() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:183

uint8_t getVersion() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:182

Expected<llvm::StrOffsetsContributionDescriptor>
validateContributionSize(
    llvm::DWARFDataExtractor& DA)

Description

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.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:191

Parameters

llvm::DWARFDataExtractor& DA