[PATCH] D140450: [BOLT][NFC] Make DWOId std::optional

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 18:31:32 PST 2022


Amir created this revision.
Amir added a reviewer: bolt.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a reviewer: maksfb.
Herald added a project: All.
Amir requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140450

Files:
  bolt/include/bolt/Core/DebugData.h


Index: bolt/include/bolt/Core/DebugData.h
===================================================================
--- bolt/include/bolt/Core/DebugData.h
+++ bolt/include/bolt/Core/DebugData.h
@@ -1003,7 +1003,7 @@
   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 @@
   ///       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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140450.484443.patch
Type: text/x-patch
Size: 906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221221/04b67fce/attachment.bin>


More information about the llvm-commits mailing list