Lines Matching refs:CU

55   auto CU = llvm::upper_bound(  in getUnitForOffset()  local
59 return CU != Units.end() ? CU->get() : nullptr; in getUnitForOffset()
201 static void resolveRelativeObjectPath(SmallVectorImpl<char> &Buf, DWARFDie CU) { in resolveRelativeObjectPath() argument
202 sys::path::append(Buf, dwarf::toString(CU.find(dwarf::DW_AT_comp_dir), "")); in resolveRelativeObjectPath()
208 const DWARFDie &DIE, CompileUnit &CU, in analyzeImportedModule() argument
211 if (CU.getLanguage() != dwarf::DW_LANG_Swift) in analyzeImportedModule()
223 SysRoot = CU.getSysRoot(); in analyzeImportedModule()
230 DWARFDie CUDie = CU.getOrigUnit().getUnitDIE(); in analyzeImportedModule()
277 static bool updatePruning(const DWARFDie &Die, CompileUnit &CU, in updatePruning() argument
279 CompileUnit::DIEInfo &Info = CU.getInfo(Die); in updatePruning()
299 static void updateChildPruning(const DWARFDie &Die, CompileUnit &CU, in updateChildPruning() argument
301 CompileUnit::DIEInfo &Info = CU.getInfo(Die); in updateChildPruning()
314 const DWARFDie &DIE, unsigned ParentIdx, CompileUnit &CU, in analyzeContextInfo() argument
329 updatePruning(Current.Die, CU, ModulesEndOffset); in analyzeContextInfo()
332 updateChildPruning(Current.Die, CU, *Current.OtherInfo); in analyzeContextInfo()
338 unsigned Idx = CU.getOrigUnit().getDIEIndex(Current.Die); in analyzeContextInfo()
339 CompileUnit::DIEInfo &Info = CU.getInfo(Idx); in analyzeContextInfo()
356 CU.getClangModuleName()) { in analyzeContextInfo()
358 analyzeImportedModule(Current.Die, CU, ParseableSwiftInterfaces, in analyzeContextInfo()
363 bool InClangModule = CU.isClangModule() || Current.InImportedModule; in analyzeContextInfo()
364 if (CU.hasODR() || InClangModule) { in analyzeContextInfo()
367 *Current.Context, Current.Die, CU, InClangModule); in analyzeContextInfo()
382 CompileUnit::DIEInfo &ChildInfo = CU.getInfo(Child); in analyzeContextInfo()
390 return CU.getInfo(DIE).Prune; in analyzeContextInfo()
547 static void updateChildIncompleteness(const DWARFDie &Die, CompileUnit &CU, in updateChildIncompleteness() argument
557 CompileUnit::DIEInfo &MyInfo = CU.getInfo(Die); in updateChildIncompleteness()
566 static void updateRefIncompleteness(const DWARFDie &Die, CompileUnit &CU, in updateRefIncompleteness() argument
579 CompileUnit::DIEInfo &MyInfo = CU.getInfo(Die); in updateRefIncompleteness()
591 const DWARFDie &Die, CompileUnit &CU, unsigned Flags, in lookForChildDIEsToKeep() argument
611 CompileUnit::DIEInfo &ChildInfo = CU.getInfo(Child); in lookForChildDIEsToKeep()
612 Worklist.emplace_back(Die, CU, WorklistItemType::UpdateChildIncompleteness, in lookForChildDIEsToKeep()
614 Worklist.emplace_back(Child, CU, Flags); in lookForChildDIEsToKeep()
621 const DWARFDie &Die, CompileUnit &CU, unsigned Flags, in lookForRefDIEsToKeep() argument
626 : CU.hasODR(); in lookForRefDIEsToKeep()
627 DWARFUnit &Unit = CU.getOrigUnit(); in lookForRefDIEsToKeep()
681 Worklist.emplace_back(Die, CU, WorklistItemType::UpdateRefIncompleteness, in lookForRefDIEsToKeep()
691 unsigned AncestorIdx, CompileUnit &CU, unsigned Flags, in lookForParentDIEsToKeep() argument
694 if (CU.getInfo(AncestorIdx).Keep) in lookForParentDIEsToKeep()
697 DWARFUnit &Unit = CU.getOrigUnit(); in lookForParentDIEsToKeep()
699 Worklist.emplace_back(CU.getInfo(AncestorIdx).ParentIdx, CU, Flags); in lookForParentDIEsToKeep()
700 Worklist.emplace_back(ParentDIE, CU, Flags); in lookForParentDIEsToKeep()
742 updateChildIncompleteness(Current.Die, Current.CU, *Current.OtherInfo); in lookForDIEsToKeep()
745 updateRefIncompleteness(Current.Die, Current.CU, *Current.OtherInfo); in lookForDIEsToKeep()
748 lookForChildDIEsToKeep(Current.Die, Current.CU, Current.Flags, Worklist); in lookForDIEsToKeep()
751 lookForRefDIEsToKeep(Current.Die, Current.CU, Current.Flags, Units, File, in lookForDIEsToKeep()
755 lookForParentDIEsToKeep(Current.AncestorIdx, Current.CU, Current.Flags, in lookForDIEsToKeep()
762 unsigned Idx = Current.CU.getOrigUnit().getDIEIndex(Current.Die); in lookForDIEsToKeep()
763 CompileUnit::DIEInfo &MyInfo = Current.CU.getInfo(Idx); in lookForDIEsToKeep()
778 Current.CU, MyInfo, Current.Flags); in lookForDIEsToKeep()
783 Worklist.emplace_back(Current.Die, Current.CU, Current.Flags, in lookForDIEsToKeep()
802 Worklist.emplace_back(Current.Die, Current.CU, Current.Flags, in lookForDIEsToKeep()
806 : Current.CU.hasODR(); in lookForDIEsToKeep()
811 Worklist.emplace_back(MyInfo.ParentIdx, Current.CU, ParFlags); in lookForDIEsToKeep()
1929 CompileUnit *CU = &U; in hashFullyQualifiedName() local
1946 CU = RefCU; in hashFullyQualifiedName()
1956 if (CU->getInfo(Idx).ParentIdx == 0 || in hashFullyQualifiedName()
1958 CU->getOrigUnit().getDIEAtIndex(CU->getInfo(Idx).ParentIdx).getTag() == in hashFullyQualifiedName()
1962 DWARFDie Die = OrigUnit->getDIEAtIndex(CU->getInfo(Idx).ParentIdx); in hashFullyQualifiedName()
1966 hashFullyQualifiedName(Die, *CU, File, ++ChildRecurseDepth))); in hashFullyQualifiedName()
2070 for (const auto &CU : ErrOrObj->Dwarf->compile_units()) { in loadClangModule() local
2071 updateDwarfVersion(CU->getVersion()); in loadClangModule()
2073 auto CUDie = CU->getUnitDIE(false); in loadClangModule()
2076 if (!registerModuleReference(CUDie, *CU, File, StringPool, ODRContexts, in loadClangModule()
2090 uint64_t PCMDwoId = getDwoId(CUDie, *CU); in loadClangModule()
2103 Unit = std::make_unique<CompileUnit>(*CU, UnitID++, !Options.NoODR, in loadClangModule()
2383 for (const auto &CU : OptContext.File.Dwarf->compile_units()) { in link() local
2384 updateDwarfVersion(CU->getVersion()); in link()
2385 auto CUDie = CU->getUnitDIE(false); in link()
2394 registerModuleReference(CUDie, *CU, OptContext.File, OffsetsStringPool, in link()
2426 for (const auto &CU : Context.File.Dwarf->compile_units()) { in link() local
2427 updateDwarfVersion(CU->getVersion()); in link()
2434 auto CUDie = CU->getUnitDIE(false); in link()
2436 !registerModuleReference(CUDie, *CU, Context.File, OffsetsStringPool, in link()
2440 *CU, UnitID++, !Options.NoODR && !Options.Update, "")); in link()