[llvm] [BOLT][DWARF] Refactor legacy ranges writers (PR #96006)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 15:54:21 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:
Okay. Then you wouldn't need `appendToRangeBuffer()` as it becomes just `*RangesStream << CUBuffer`.
https://github.com/llvm/llvm-project/pull/96006
More information about the llvm-commits
mailing list