Lines Matching defs:CU

68                cl::desc("Add the CU hash as the dwo_id."),
752 // file this CU comes from yet.
762 // split dwarf it's in the skeleton CU so omit it here.
780 // left in the skeleton CU and so not included.
795 // skeleton CU and so we don't need to duplicate it here.
800 // emit it here if we don't have a skeleton CU for split dwarf.
936 CompileUnit *CU = constructCompileUnit(CUNode);
946 CU->createGlobalVariableDIE(DIGlobalVariable(GVs.getElement(i)));
949 constructSubprogramDIE(CU, SPs.getElement(i));
952 CU->getOrCreateTypeDIE(EnumTypes.getElement(i));
955 CU->getOrCreateTypeDIE(RetainedTypes.getElement(i));
959 constructImportedEntityDIE(CU, ImportedEntities.getElement(i));
1054 /// Test if the current CU language is C++ and that we have
1056 static bool shouldAddODRHash(CompileUnit *CU, DIE *Die) {
1057 return CU->getLanguage() == dwarf::DW_LANG_C_plus_plus &&
1095 // CU then construct a skeleton CU based upon it.
1105 // Now construct the skeleton CU associated.
1915 DICompileUnit CU(S);
1916 Fn = CU.getFilename();
1917 Dir = CU.getDirectory();
1948 // CU. It returns the offset after laying out the DIE.
1993 // Offset from the first CU in the debug info section is 0 initially.
1997 // DIE within each compile unit. All offsets are CU relative.
2002 // CU-relative offset is reset to 0 here.
2006 // EndOffset here is CU-relative, after laying out
2007 // all of the CU DIE.
2103 CompileUnit *CU = CUDieMap.lookup(Origin->getCompileUnit());
2104 assert(CU && "CUDie should belong to a CU.");
2105 Addr += CU->getDebugInfoOffset();
2114 // Make sure Origin belong to the same CU.
2116 "The referenced DIE should belong to the same CU in ref4");
2399 // dwarf pubnames - offset/name pairs where the offset is the offset into the CU
2403 // into the CU and the index value is computed according to the type of value
2410 /// computeIndexValue - Compute the gdb index value for the DIE and CU.
2411 static dwarf::PubIndexEntryDescriptor computeIndexValue(CompileUnit *CU,
2431 dwarf::GIEK_TYPE, CU->getLanguage() != dwarf::DW_LANG_C_plus_plus
2798 // Emit a debug aranges section, containing a CU lookup for any
2799 // address we can tie back to a CU.
2821 // Build a set of address spans, sorted by CU.
2841 if (Cur.CU)
2842 Spans[Cur.CU].push_back(Span);
2851 // Try and build the longest span we can within the same CU.
2852 if (Cur.CU != Prev.CU) {
2856 Spans[Prev.CU].push_back(Span);
2869 CompileUnit *CU = it->first;
2870 CUs.push_back(CU);
2873 // Sort the CU list (again, to ensure consistent output order).
2876 // Emit an arange table for each CU we used.
2878 CompileUnit *CU = CUs[CUIdx];
2879 std::vector<ArangeSpan> &List = Spans[CU];
2884 + sizeof(int32_t) // Offset of CU in the .debug_info section
2905 Asm->GetTempSymbol(ISec->getLabelBeginName(), CU->getUniqueID()),
2969 CompileUnit *DwarfDebug::constructSkeletonCU(const CompileUnit *CU) {
2972 CompileUnit *NewCU = new CompileUnit(CU->getUniqueID(), Die, CU->getNode(),
2976 CU->getNode().getSplitDebugFilename());