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

Description

Take an optional DWARFFormValue and extract a reference.

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

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 reference value or Default if the V doesn't have a value or the form value's encoding wasn't a reference form.