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

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 21 07:38:45 PDT 2024


================
@@ -197,6 +197,9 @@ class DebugRangesSectionWriter {
   /// to .debug_ranges
   uint64_t getEmptyRangesOffset() const { return EmptyRangesOffset; }
 
+  /// Returns the RangesBuffer's size.
+  uint64_t getRangesBufferSize() const { return RangesBuffer->size(); }
----------------
ayermolo wrote:

Hmm, since you are updating SectionOffset in appendToRangeBuffer, probably just using getSectionOffset will work also? Instead of adding this new API.

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


More information about the llvm-commits mailing list