[llvm] [BOLT][DWARF][NFC] Refactor address writers (PR #98094)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 17:40:22 PDT 2024


================
@@ -505,22 +511,18 @@ void DebugAddrWriterDwarf5::update(DIEBuilder &DIEBlder, DWARFUnit &CU) {
   DWARFDebugAddrTable AddrTable;
   DIDumpOptions DumpOpts;
   constexpr uint32_t HeaderSize = 8;
----------------
ayermolo wrote:

Extract this to class level so you can also use it in DebugAddrWriterDwarf5::updateAddrBase instead of doing + 8.

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


More information about the llvm-commits mailing list