[llvm] [BOLT][DWARF][NFC] Add parallelization for processing of DWO debug information (PR #100282)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 13:28:45 PDT 2024


================
@@ -757,9 +768,12 @@ void DWARFRewriter::updateDebugInfo() {
               : std::optional<std::string>(opts::DwarfOutputPath.c_str());
       std::string DWOName = DIEBlder.updateDWONameCompDir(
           *StrOffstsWriter, *StrWriter, *CU, DwarfOutputPath, std::nullopt);
-      processSplitCU(*CU, **SplitCU, DIEBlder, *TempRangesSectionWriter,
-                     AddressWriter, DWOName, DwarfOutputPath);
+      ThreadPool.async([&, DwarfOutputPath, DWOName] {
----------------
ayermolo wrote:

Ah OK, for DWOName that makes sense, but are you sure about DwarfOutputPath?

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


More information about the llvm-commits mailing list