[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:35 PDT 2024


================
@@ -1628,6 +1640,24 @@ void DWARFRewriter::finalizeCompileUnits(DIEBuilder &DIEBlder,
                                          CUOffsetMap &CUMap,
                                          const std::list<DWARFUnit *> &CUs) {
   for (DWARFUnit *CU : CUs) {
+    auto AddressWriterIterator = AddressWritersByCU.find(CU->getOffset());
+    assert(AddressWriterIterator != AddressWritersByCU.end() &&
+           "AddressWriter does not exist for CU");
+    std::unique_ptr<DebugAddrWriter> &AddressWriter =
----------------
ayermolo wrote:

work with underlying instance. 

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


More information about the llvm-commits mailing list