Parameters that control the byte size of variable‐width DW_FORM values.

Synopsis

Declared in <llvm/BinaryFormat/Dwarf.h>

struct FormParams;

Description

Form sizes can depend on the DWARF version, address byte size, or DWARF32/DWARF64 format.

Member Functions

Name

Description

getDwarfMaxOffset

Maximum offset value representable in this DWARF format (32‐ or 64‐bit).

getDwarfOffsetByteSize

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

getRefAddrByteSize

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.

operator bool

True when both Version and AddrSize are non‐zero (usable form parameters).

Data Members

Name

Description

AddrSize

Target address size in bytes for this compilation unit.

DwarfUsesRelocationsAcrossSections

True if DWARF v2 output generally uses relocations for references to other .debug_* sections.

Format

DWARF32 or DWARF64 format controlling offset and length field widths.

Version

DWARF version number used to interpret form sizes and encodings.

Created with MrDocs