File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2658,12 +2658,12 @@ Error DWARFLinker::link() {
26582658 continue ;
26592659 }
26602660
2661- // In a first phase, just read in the debug info and load all clang modules.
2661+ // Clone all the clang modules with requires extracting the DIE units. We
2662+ // don't need the full debug info until the Analyze phase.
26622663 OptContext.CompileUnits .reserve (
26632664 OptContext.File .Dwarf ->getNumCompileUnits ());
2664-
26652665 for (const auto &CU : OptContext.File .Dwarf ->compile_units ()) {
2666- auto CUDie = CU->getUnitDIE (false );
2666+ auto CUDie = CU->getUnitDIE (/* ExtractUnitDIEOnly= */ true );
26672667 if (Options.Verbose ) {
26682668 outs () << " Input compilation unit:" ;
26692669 DIDumpOptions DumpOpts;
@@ -2704,9 +2704,9 @@ Error DWARFLinker::link() {
27042704 return ;
27052705
27062706 for (const auto &CU : Context.File .Dwarf ->compile_units ()) {
2707- // The !isClangModuleRef condition effectively skips over fully resolved
2708- // skeleton units .
2709- auto CUDie = CU->getUnitDIE ();
2707+ // Previously we only extracted the unit DIEs. We need the full debug info
2708+ // now .
2709+ auto CUDie = CU->getUnitDIE (/* ExtractUnitDIEOnly= */ false );
27102710 std::string PCMFile = getPCMFile (CUDie, Options.ObjectPrefixMap );
27112711
27122712 if (!CUDie || LLVM_UNLIKELY (Options.Update ) ||
You can’t perform that action at this time.
0 commit comments