class DWARFUnitHeader

Declaration

class DWARFUnitHeader { /* full declaration omitted */ };

Description

Base class describing the header of any kind of "unit." Some information is specific to certain unit types. We separate this class out so we can parse the header before deciding what specific kind of unit to construct.

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

Method Overview

Methods

bool extract(
    llvm::DWARFContext& Context,
    const llvm::DWARFDataExtractor& debug_info,
    uint64_t* offset_ptr,
    llvm::DWARFSectionKind Kind = DW_SECT_INFO,
    const llvm::DWARFUnitIndex* Index = nullptr,
    const DWARFUnitIndex::Entry* Entry = nullptr)

Description

Parse a unit header from \p debug_info starting at \p offset_ptr.

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

Parameters

llvm::DWARFContext& Context
const llvm::DWARFDataExtractor& debug_info
uint64_t* offset_ptr
llvm::DWARFSectionKind Kind = DW_SECT_INFO
const llvm::DWARFUnitIndex* Index = nullptr
const DWARFUnitIndex::Entry* Entry = nullptr

uint64_t getAbbrOffset() const

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

uint8_t getAddressByteSize() const

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

Optional<uint64_t> getDWOId() const

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

uint8_t getDwarfOffsetByteSize() const

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

const dwarf::FormParams& getFormParams() const

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

dwarf::DwarfFormat getFormat() const

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

const DWARFUnitIndex::Entry* getIndexEntry() const

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

uint64_t getLength() const

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

uint64_t getNextUnitOffset() const

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

uint64_t getOffset() const

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

uint8_t getRefAddrByteSize() const

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

uint8_t getSize() const

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

uint64_t getTypeHash() const

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

uint64_t getTypeOffset() const

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

uint8_t getUnitLengthFieldByteSize() const

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

uint8_t getUnitType() const

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

uint16_t getVersion() const

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

bool isTypeUnit() const

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

void setDWOId(uint64_t Id)

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

Parameters

uint64_t Id