summaryrefslogtreecommitdiff
path: root/bolt/include
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2022-12-11 12:40:06 -0800
committerAmir Ayupov <aaupov@fb.com>2022-12-11 22:13:47 -0800
commit34e7d65f798646bcd906a654997875ae72e69aed (patch)
tree8edc41243b92bddba7bb8111e4a1cdfeb4f671f0 /bolt/include
parent72528ee4b486d74eaeace1538ba9b92e6cc9bc96 (diff)
downloadllvm-34e7d65f798646bcd906a654997875ae72e69aed.tar.gz
[BOLT][NFC] Use std::optional in DWARFRewriter
Diffstat (limited to 'bolt/include')
-rw-r--r--bolt/include/bolt/Rewrite/DWARFRewriter.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/bolt/include/bolt/Rewrite/DWARFRewriter.h b/bolt/include/bolt/Rewrite/DWARFRewriter.h
index de292fd68b84..65e2a3d10cd4 100644
--- a/bolt/include/bolt/Rewrite/DWARFRewriter.h
+++ b/bolt/include/bolt/Rewrite/DWARFRewriter.h
@@ -98,7 +98,7 @@ private:
DebugAbbrevWriter &AbbrevWriter,
DebugLocWriter &DebugLocWriter,
DebugRangesSectionWriter &RangesWriter,
- Optional<uint64_t> RangesBase = std::nullopt);
+ std::optional<uint64_t> RangesBase = std::nullopt);
/// Patches the binary for an object's address ranges to be updated.
/// The object can be anything that has associated address ranges via either
@@ -112,7 +112,7 @@ private:
void updateDWARFObjectAddressRanges(
const DWARFDie DIE, uint64_t DebugRangesOffset,
SimpleBinaryPatcher &DebugInfoPatcher, DebugAbbrevWriter &AbbrevWriter,
- uint64_t LowPCToUse, Optional<uint64_t> RangesBase = std::nullopt);
+ uint64_t LowPCToUse, std::optional<uint64_t> RangesBase = std::nullopt);
std::unique_ptr<DebugBufferVector>
makeFinalLocListsSection(DebugInfoBinaryPatcher &DebugInfoPatcher,
@@ -160,19 +160,19 @@ private:
/// Convert \p Abbrev from using a simple DW_AT_(low|high)_pc range to
/// DW_AT_ranges with optional \p RangesBase.
- void convertToRangesPatchAbbrev(const DWARFUnit &Unit,
- const DWARFAbbreviationDeclaration *Abbrev,
- DebugAbbrevWriter &AbbrevWriter,
- Optional<uint64_t> RangesBase = std::nullopt);
+ void
+ convertToRangesPatchAbbrev(const DWARFUnit &Unit,
+ const DWARFAbbreviationDeclaration *Abbrev,
+ DebugAbbrevWriter &AbbrevWriter,
+ std::optional<uint64_t> RangesBase = std::nullopt);
/// Update \p DIE that was using DW_AT_(low|high)_pc with DW_AT_ranges offset.
/// Updates to the DIE should be synced with abbreviation updates using the
/// function above.
- void
- convertToRangesPatchDebugInfo(DWARFDie DIE, uint64_t RangesSectionOffset,
- SimpleBinaryPatcher &DebugInfoPatcher,
- uint64_t LowPCToUse,
- Optional<uint64_t> RangesBase = std::nullopt);
+ void convertToRangesPatchDebugInfo(
+ DWARFDie DIE, uint64_t RangesSectionOffset,
+ SimpleBinaryPatcher &DebugInfoPatcher, uint64_t LowPCToUse,
+ std::optional<uint64_t> RangesBase = std::nullopt);
/// Helper function for creating and returning per-DWO patchers/writers.
template <class T, class Patcher>