[llvm] [BOLT][DWARF] Refactor updateDWARFObjectAddressRanges (PR #96006)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 10:32:36 PDT 2024


================
@@ -177,6 +177,13 @@ uint64_t DebugRangesSectionWriter::getSectionOffset() {
   return SectionOffset;
 }
 
+void DebugRangesSectionWriter::updateRangeBuffer(std::unique_ptr<DebugBufferVector> &CUBuffer) {
+  for(auto DebugInfo : *CUBuffer){
----------------
ayermolo wrote:

Use Ranges Stream. See DebugRangeListsSectionWriter::finalizeSection() for example.

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


More information about the llvm-commits mailing list