ΒΆinline llvm::StringRef toStringRef(
const Optional<llvm::DWARFFormValue>& V,
llvm::StringRef Default = {})
inline llvm::StringRef toStringRef(
const Optional<llvm::DWARFFormValue>& V,
llvm::StringRef Default = {})
Description
Take an optional DWARFFormValue and try to extract a string value from it.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h:172
Parameters
- const Optional<llvm::DWARFFormValue>& V
- and optional DWARFFormValue to attempt to extract the value from.
- llvm::StringRef Default = {}
Returns
an optional value that contains a value if the form value was valid and was a string.