This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
#include <cinttypes>
#include <cstdint>
#include <limits>
+#include <optional>
using namespace llvm;
using namespace dwarf;
return make_error<StringError>("Unsupported form for string attribute",
inconvertibleErrorCode());
uint64_t Offset = Value.uval;
- Optional<uint32_t> Index;
+ std::optional<uint32_t> Index;
if (Form == DW_FORM_GNU_str_index || Form == DW_FORM_strx ||
Form == DW_FORM_strx1 || Form == DW_FORM_strx2 || Form == DW_FORM_strx3 ||
Form == DW_FORM_strx4) {