[PATCH] D140450: [BOLT][NFC] Make DWOId std::optional
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 10:40:20 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5bcd98013782: [BOLT][NFC] Make DWOId std::optional (authored by Amir).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140450/new/
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.484616.patch
Type: text/x-patch
Size: 906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221221/0012b1ed/attachment.bin>
More information about the llvm-commits
mailing list