[llvm] [BOLT][DWARF] Refactor legacy ranges writers (PR #96006)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 17:56:17 PDT 2024


================
@@ -211,6 +211,12 @@ class DebugRangesSectionWriter {
     return Writer->getKind() == RangesWriterKind::DebugRangesWriter;
   }
 
+  void appendToRangeBuffer(const DebugBufferVector &CUBuffer);
+
+  void setDie(std::optional<DIE *> Die) { this->Die = Die; }
----------------
maksfb wrote:

There's no need to pass `DIE *` as `std::optional<>`.

https://github.com/llvm/llvm-project/pull/96006


More information about the llvm-commits mailing list