diff --git a/bolt/include/bolt/Core/DebugData.h b/bolt/include/bolt/Core/DebugData.h --- a/bolt/include/bolt/Core/DebugData.h +++ b/bolt/include/bolt/Core/DebugData.h @@ -1003,7 +1003,7 @@ DWARFContext &Context; /// DWO ID used to identify unit contribution in DWP. - Optional DWOId; + std::optional DWOId; /// Add abbreviations from compile/type \p Unit to the writer. void addUnitAbbreviations(DWARFUnit &Unit); @@ -1020,7 +1020,7 @@ /// If type units are used, the caller is responsible for verifying /// that abbreviations are shared by CU and TUs. DebugAbbrevWriter(DWARFContext &Context, - Optional DWOId = std::nullopt) + std::optional DWOId = std::nullopt) : Context(Context), DWOId(DWOId) {} DebugAbbrevWriter(const DebugAbbrevWriter &) = delete;