[llvm] [BOLT][DWARF] Cleanup buffer initialization for DWO range writer (PR #97843)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 18:12:10 PDT 2024
================
@@ -137,11 +137,13 @@ DebugRangesSectionWriter::DebugRangesSectionWriter() {
RangesBuffer = std::make_unique<DebugBufferVector>();
RangesStream = std::make_unique<raw_svector_ostream>(*RangesBuffer);
- // Add an empty range as the first entry;
- writeAddressRanges(*RangesStream.get(), DebugAddressRangesVector{});
Kind = RangesWriterKind::DebugRangesWriter;
}
+void DebugRangesSectionWriter::initSection() {
+ writeAddressRanges(*RangesStream.get(), DebugAddressRangesVector{});
----------------
ayermolo wrote:
Dropped comment
https://github.com/llvm/llvm-project/pull/97843
More information about the llvm-commits
mailing list