struct FormParams

Declaration

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

Description

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.

Declared at: llvm/include/llvm/BinaryFormat/Dwarf.h:653

Member Variables

public uint16_t Version
public uint8_t AddrSize
public llvm::dwarf::DwarfFormat Format
public bool DwarfUsesRelocationsAcrossSections = false
True if DWARF v2 output generally uses relocations for references to other .debug_* sections.

Method Overview

Methods

uint8_t getDwarfOffsetByteSize() const

Description

The size of a reference is determined by the DWARF 32/64-bit format.

Declared at: llvm/include/llvm/BinaryFormat/Dwarf.h:671

uint8_t getRefAddrByteSize() const

Description

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.

Declared at: llvm/include/llvm/BinaryFormat/Dwarf.h:664

bool operator bool() const

Declared at: llvm/include/llvm/BinaryFormat/Dwarf.h:675