[llvm] [BOLT][DWARF][NFC] Split DIEBuilder::finish (PR #101244)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 15:26:48 PDT 2024


================
@@ -740,6 +739,7 @@ void DWARFRewriter::updateDebugInfo() {
       finalizeTypeSections(DIEBlder, *Streamer, GDBIndexSection);
 
   CUPartitionVector PartVec = partitionCUs(*BC.DwCtx);
+  llvm::DenseMap<uint64_t, std::unique_ptr<DIEBuilder>> DWODIEBuildersByCU;
----------------
ayermolo wrote:

This can just be a vector since we iterate in the same order.
Also let's move it to partition loop, so se don't keep around all the DWO Builders.
Either that or call clear on it to free up memory.

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


More information about the llvm-commits mailing list