[llvm] [BOLT][DWARF][NFC] Refactor address writers (PR #98094)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 13:51:36 PDT 2024
================
@@ -408,14 +434,17 @@ class DebugAddrWriter {
}
BinaryContext *BC;
- /// Maps DWOID to AddressForDWOCU.
- std::unordered_map<uint64_t, AddressForDWOCU> AddressMaps;
+ /// Address for the DWO CU associated with the address writer.
+ AddressForDWOCU Map;
+ uint8_t AddressByteSize;
+ std::optional<uint64_t> AddrOffsetSectionBase;
----------------
ayermolo wrote:
This is only used for DWARF5 stuff right?
If yes move to DebugAddrWriterDwarf5, and initialize with constructor.
https://github.com/llvm/llvm-project/pull/98094
More information about the llvm-commits
mailing list