Lines Matching defs:CU

68     for (const std::unique_ptr<DWARFUnit> &CU :
70 DWARFDie CUDie = CU->getUnitDIE();
76 OnCUDieLoaded(*CU);
258 static void resolveRelativeObjectPath(SmallVectorImpl<char> &Buf, DWARFDie CU) {
259 sys::path::append(Buf, dwarf::toString(CU.find(dwarf::DW_AT_comp_dir), ""));
308 GlobalData.warn("anonymous module skeleton CU for " + PCMFile + ".",
337 /// If this compile unit is really a skeleton CU that points to a
340 /// A skeleton CU is a CU without children, a DW_AT_gnu_dwo_name
398 for (const auto &CU : ErrOrObj->Dwarf->compile_units()) {
399 OnCUDieLoaded(*CU);
401 auto ChildCUDie = CU->getUnitDIE();
433 GlobalData, *CU, UniqueUnitID.fetch_add(1), ModuleName, *ErrOrObj,
434 getUnitForOffset, CU->getFormParams(), getEndianness());
497 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
498 linkSingleCompileUnit(*CU, ArtificialTypeUnit);
509 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
510 if (CU->isInterconnectedCU()) {
511 CU->maybeResetToLoadedStage();
512 linkSingleCompileUnit(*CU, ArtificialTypeUnit,
518 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
519 linkSingleCompileUnit(*CU, ArtificialTypeUnit,
530 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
532 *CU, ArtificialTypeUnit,
538 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
539 if (CU->isInterconnectedCU() &&
540 CU->getStage() == CompileUnit::Stage::LivenessAnalysisDone)
541 CU->setStage(CompileUnit::Stage::UpdateDependenciesCompleteness);
545 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
546 linkSingleCompileUnit(*CU, ArtificialTypeUnit,
551 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
552 linkSingleCompileUnit(*CU, ArtificialTypeUnit,
557 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
558 linkSingleCompileUnit(*CU, ArtificialTypeUnit,
563 parallelForEach(CompileUnits, [&](std::unique_ptr<CompileUnit> &CU) {
564 linkSingleCompileUnit(*CU, ArtificialTypeUnit,
592 CompileUnit &CU, TypeUnit *ArtificialTypeUnit,
594 if (InterCUProcessingStarted != CU.isInterconnectedCU())
598 if (CU.getStage() >= DoUntilStage)
601 switch (CU.getStage()) {
605 if (!CU.loadInputDIEs()) {
608 CU.setStage(CompileUnit::Stage::Skipped);
610 CU.analyzeDWARFStructure();
618 CU.getOrigUnit().getUnitDIE(), nullptr,
620 CU.setStage(CompileUnit::Stage::PatchesUpdated);
622 CU.setStage(CompileUnit::Stage::Loaded);
629 if (!CU.resolveDependenciesAndMarkLiveness(InterCUProcessingStarted,
636 CU.setStage(CompileUnit::Stage::LivenessAnalysisDone);
641 if (CU.updateDependenciesCompleteness())
646 return CU.updateDependenciesCompleteness();
650 CU.setStage(CompileUnit::Stage::UpdateDependenciesCompleteness);
656 CU.verifyDependencies();
661 CU.assignTypeNames(ArtificialTypeUnit->getTypePool()))
664 CU.setStage(CompileUnit::Stage::TypeNamesAssigned);
669 if (CU.isClangModule() ||
671 CU.getContaingFile().Addresses->hasValidRelocs()) {
672 if (Error Err = CU.cloneAndEmit(GlobalData.getTargetTriple(),
677 CU.setStage(CompileUnit::Stage::Cloned);
682 CU.updateDieRefPatchesWithClonedOffsets();
683 CU.setStage(CompileUnit::Stage::PatchesUpdated);
688 CU.cleanupDataAfterClonning();
689 CU.setStage(CompileUnit::Stage::Cleaned);
703 CU.error(std::move(Err));
704 CU.cleanupDataAfterClonning();
705 CU.setStage(CompileUnit::Stage::Skipped);
861 // Patch size/offsets fields according to the assigned CU offsets.
889 for (std::unique_ptr<CompileUnit> &CU : Context->CompileUnits)
891 CU->tryGetSectionDescriptor(DebugSectionKind::DebugInfo))
1005 forEachCompileUnit([&](CompileUnit *CU) {
1006 CU->forEach([&](SectionDescriptor &OutSection) {
1016 CU->forEachAcceleratorRecord([&](DwarfUnit::AccelInfo &Info) {
1067 for (std::unique_ptr<CompileUnit> &CU : Context->CompileUnits)
1068 if (CU->getStage() != CompileUnit::Stage::Skipped)
1069 SectionsSetHandler(*CU);
1074 function_ref<void(DwarfUnit *CU)> UnitHandler) {
1086 for (std::unique_ptr<CompileUnit> &CU : Context->CompileUnits)
1087 if (CU->getStage() != CompileUnit::Stage::Skipped)
1088 UnitHandler(CU.get());
1092 function_ref<void(CompileUnit *CU)> UnitHandler) {
1101 for (std::unique_ptr<CompileUnit> &CU : Context->CompileUnits)
1102 if (CU->getStage() != CompileUnit::Stage::Skipped)
1103 UnitHandler(CU.get());
1216 forEachCompileAndTypeUnit([&](DwarfUnit *CU) {
1217 CU->forEachAcceleratorRecord([&](const DwarfUnit::AccelInfo &Info) {
1226 CU->getSectionDescriptor(DebugSectionKind::DebugInfo).StartOffset +
1232 CU->getSectionDescriptor(DebugSectionKind::DebugInfo).StartOffset +
1238 CU->getSectionDescriptor(DebugSectionKind::DebugInfo).StartOffset +
1244 CU->getSectionDescriptor(DebugSectionKind::DebugInfo).StartOffset +
1348 forEachCompileAndTypeUnit([&](DwarfUnit *CU) {
1350 CU->forEachAcceleratorRecord([&](const DwarfUnit::AccelInfo &Info) {
1361 Info.Tag, CU->getUniqueID(),
1362 CU->getTag() == dwarf::DW_TAG_type_unit);
1372 CU->getOrCreateSectionDescriptor(DebugSectionKind::DebugInfo)
1374 CUidToIdx[CU->getUniqueID()] = Id++;