Lines Matching defs:CU
120 /// called after the CU's DIEs have been cloned.
663 sizeof(int32_t) + // Offset of CU in the .debug_info section
1042 /// keep. Store that information in \p CU's DIEInfo.
1044 const DebugMapObject &DMO, CompileUnit &CU,
1059 const DebugMapObject &DMO, CompileUnit &CU,
1233 auto CU =
1238 return CU != Units.end() ? &*CU : nullptr;
1305 unsigned ParentIdx, CompileUnit &CU) {
1306 unsigned MyIdx = CU.getOrigUnit().getDIEIndex(DIE);
1307 CU.getInfo(MyIdx).ParentIdx = ParentIdx;
1312 gatherDIEParents(Child, MyIdx, CU);
1636 CompileUnit &CU, unsigned Flags) {
1637 const DWARFUnit &Unit = CU.getOrigUnit();
1642 while (!CU.getInfo(AncestorIdx).Keep) {
1643 lookForDIEsToKeep(*Unit.getDIEAtIndex(AncestorIdx), DMO, CU,
1645 AncestorIdx = CU.getInfo(AncestorIdx).ParentIdx;
1672 /// keep. Store that information in \p CU's DIEInfo.
1684 const DebugMapObject &DMO, CompileUnit &CU,
1686 unsigned Idx = CU.getOrigUnit().getDIEIndex(&DIE);
1687 CompileUnit::DIEInfo &MyInfo = CU.getInfo(Idx);
1699 Flags = shouldKeepDIE(DIE, CU, MyInfo, Flags);
1703 keepDIEAndDenpendencies(DIE, MyInfo, DMO, CU, Flags);
1719 lookForDIEsToKeep(*Child, DMO, CU, Flags);
2462 for (const auto &CU : DwarfContext.compile_units()) {
2463 auto *CUDie = CU->getCompileUnitDIE(false);
2466 CUDie->dump(outs(), CU.get(), 0);
2468 Units.emplace_back(*CU, UnitID++);
2475 // references require the ParentIdx to be setup for every CU in