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

Description

Take an optional DWARFFormValue and extract a signed integer.

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

Parameters

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

Returns

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