[llvm] [BOLT][DWARF][NFC] Split processUnitDIE into two lambdas (PR #99225)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 11:34:27 PDT 2024


================
@@ -767,17 +769,28 @@ void DWARFRewriter::updateDebugInfo() {
     CUPartitionVector PartVec = partitionCUs(*BC.DwCtx);
     for (std::vector<DWARFUnit *> &Vec : PartVec) {
       DIEBlder.buildCompileUnits(Vec);
-      for (DWARFUnit *CU : DIEBlder.getProcessedCUs())
-        processUnitDIE(CU, &DIEBlder);
+      llvm::SmallVector<DWARFUnit *> CompileUnits(
----------------
ayermolo wrote:

Why is this necessary?

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


More information about the llvm-commits mailing list