ΒΆinline uint64_t toSectionOffset(
    const Optional<llvm::DWARFFormValue>& V,
    uint64_t Default)

Description

Take an optional DWARFFormValue and extract a section offset.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h:330

Parameters

const Optional<llvm::DWARFFormValue>& V
and optional DWARFFormValue to attempt to extract the value from.
uint64_t Default
the default value to return in case of failure.

Returns

the extracted section offset value or Default if the V doesn't have a value or the form value's encoding wasn't a section offset form.