[BOLT][NFC] Make DWOId std::optional
authorAmir Ayupov <aaupov@fb.com>
Wed, 21 Dec 2022 18:09:46 +0000 (10:09 -0800)
committerAmir Ayupov <aaupov@fb.com>
Wed, 21 Dec 2022 18:40:08 +0000 (10:40 -0800)
Reviewed By: #bolt, ayermolo

Differential Revision: https://reviews.llvm.org/D140450

bolt/include/bolt/Core/DebugData.h

index 24d6d63..2b79d64 100644 (file)
@@ -1003,7 +1003,7 @@ class DebugAbbrevWriter {
   DWARFContext &Context;
 
   /// DWO ID used to identify unit contribution in DWP.
-  Optional<uint64_t> DWOId;
+  std::optional<uint64_t> 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<uint64_t> DWOId = std::nullopt)
+                    std::optional<uint64_t> DWOId = std::nullopt)
       : Context(Context), DWOId(DWOId) {}
 
   DebugAbbrevWriter(const DebugAbbrevWriter &) = delete;