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

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 12:42:18 PDT 2024


================
@@ -177,6 +177,12 @@ uint64_t DebugRangesSectionWriter::getSectionOffset() {
   return SectionOffset;
 }
 
+void DebugRangesSectionWriter::appendToRangeBuffer(
+    const DebugBufferVector &CUBuffer) {
+  *RangesStream << CUBuffer;
+  SectionOffset = RangesBuffer->size();
----------------
maksfb wrote:

Are there cases where `SectionOffset` is out of sync with `RangesBuffer->size()`?

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


More information about the llvm-commits mailing list