From 5bcd980137822fe0d564062656f96dd0795358da Mon Sep 17 00:00:00 2001 From: Amir Ayupov Date: Wed, 21 Dec 2022 10:09:46 -0800 Subject: [PATCH] [BOLT][NFC] Make DWOId std::optional Reviewed By: #bolt, ayermolo Differential Revision: https://reviews.llvm.org/D140450 --- bolt/include/bolt/Core/DebugData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bolt/include/bolt/Core/DebugData.h b/bolt/include/bolt/Core/DebugData.h index 24d6d63..2b79d64 100644 --- a/bolt/include/bolt/Core/DebugData.h +++ b/bolt/include/bolt/Core/DebugData.h @@ -1003,7 +1003,7 @@ class DebugAbbrevWriter { 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 @@ public: /// 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; -- 2.7.4