Lines Matching refs:dwarf_cu
650 DWARFUnit *dwarf_cu = DebugInfo().GetUnitAtIndex(comp_unit->GetID()); in GetDWARFCompileUnit() local
651 if (dwarf_cu && dwarf_cu->GetUserData() == nullptr) in GetDWARFCompileUnit()
652 dwarf_cu->SetUserData(comp_unit); in GetDWARFCompileUnit()
655 return llvm::cast_or_null<DWARFCompileUnit>(dwarf_cu); in GetDWARFCompileUnit()
674 static void MakeAbsoluteAndRemap(FileSpec &file_spec, DWARFUnit &dwarf_cu, in MakeAbsoluteAndRemap() argument
681 file_spec.MakeAbsolute(dwarf_cu.GetCompilationDirectory()); in MakeAbsoluteAndRemap()
688 static const char *GetDWOName(DWARFCompileUnit &dwarf_cu, in GetDWOName() argument
691 cu_die.GetAttributeValueAsString(&dwarf_cu, DW_AT_GNU_dwo_name, nullptr); in GetDWOName()
694 cu_die.GetAttributeValueAsString(&dwarf_cu, DW_AT_dwo_name, nullptr); in GetDWOName()
698 lldb::CompUnitSP SymbolFileDWARF::ParseCompileUnit(DWARFCompileUnit &dwarf_cu) { in ParseCompileUnit() argument
700 CompileUnit *comp_unit = (CompileUnit *)dwarf_cu.GetUserData(); in ParseCompileUnit()
705 if (dwarf_cu.GetOffset() == 0 && GetDebugMapSymfile()) { in ParseCompileUnit()
708 dwarf_cu.SetUserData(cu_sp.get()); in ParseCompileUnit()
716 module_sp, &dwarf_cu, file_spec, in ParseCompileUnit()
717 *GetDWARFUnitIndex(dwarf_cu.GetID()), cu_language, in ParseCompileUnit()
720 dwarf_cu.SetUserData(cu_sp.get()); in ParseCompileUnit()
722 SetCompileUnitAtIndex(dwarf_cu.GetID(), cu_sp); in ParseCompileUnit()
727 if (dwarf_cu.GetVersion() < 5) in ParseCompileUnit()
734 const DWARFBaseDIE cu_die = dwarf_cu.GetUnitDIEOnly(); in ParseCompileUnit()
737 if (!GetDWOName(dwarf_cu, *cu_die.GetDIE())) in ParseCompileUnit()
745 if (!ParseSupportFiles(dwarf_cu, module_sp, support_files)) in ParseCompileUnit()
759 dwarf_cu.GetNonSkeletonUnit().GetUnitDIEOnly(); in ParseCompileUnit()
762 dwarf_cu.GetDWARFLanguageType()); in ParseCompileUnit()
764 FileSpec cu_file_spec(cu_die.GetName(), dwarf_cu.GetPathStyle()); in ParseCompileUnit()
768 MakeAbsoluteAndRemap(cu_file_spec, dwarf_cu, module_sp); in ParseCompileUnit()
814 if (auto *dwarf_cu = llvm::cast_or_null<DWARFCompileUnit>( in ParseCompileUnitAtIndex() local
816 return ParseCompileUnit(*dwarf_cu); in ParseCompileUnitAtIndex()
882 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseLanguage() local
883 if (dwarf_cu) in ParseLanguage()
884 return GetLanguage(dwarf_cu->GetNonSkeletonUnit()); in ParseLanguage()
891 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseXcodeSDK() local
892 if (!dwarf_cu) in ParseXcodeSDK()
894 const DWARFBaseDIE cu_die = dwarf_cu->GetNonSkeletonUnit().GetUnitDIEOnly(); in ParseXcodeSDK()
920 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseFunctions() local
921 if (!dwarf_cu) in ParseFunctions()
925 dwarf_cu = &dwarf_cu->GetNonSkeletonUnit(); in ParseFunctions()
926 for (DWARFDebugInfoEntry &entry : dwarf_cu->dies()) { in ParseFunctions()
930 DWARFDIE die(dwarf_cu, &entry); in ParseFunctions()
971 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseSupportFiles() local
972 if (!dwarf_cu) in ParseSupportFiles()
975 if (!ParseSupportFiles(*dwarf_cu, comp_unit.GetModule(), support_files)) in ParseSupportFiles()
982 bool SymbolFileDWARF::ParseSupportFiles(DWARFUnit &dwarf_cu, in ParseSupportFiles() argument
986 dw_offset_t offset = dwarf_cu.GetLineTableOffset(); in ParseSupportFiles()
993 dwarf_cu.GetOffset())) in ParseSupportFiles()
997 module, prologue, dwarf_cu.GetPathStyle(), in ParseSupportFiles()
998 dwarf_cu.GetCompilationDirectory().GetCString()); in ParseSupportFiles()
1004 if (auto *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(&unit)) { in GetFile() local
1005 if (CompileUnit *lldb_cu = GetCompUnitForDWARFCompUnit(*dwarf_cu)) in GetFile()
1053 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseIsOptimized() local
1054 if (dwarf_cu) in ParseIsOptimized()
1055 return dwarf_cu->GetNonSkeletonUnit().GetIsOptimized(); in ParseIsOptimized()
1064 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(sc.comp_unit); in ParseImportedModules() local
1065 if (!dwarf_cu) in ParseImportedModules()
1072 const DWARFDIE die = dwarf_cu->DIE(); in ParseImportedModules()
1100 FileSpec include_spec(include_path, dwarf_cu->GetPathStyle()); in ParseImportedModules()
1101 MakeAbsoluteAndRemap(include_spec, *dwarf_cu, in ParseImportedModules()
1105 if (const char *sysroot = dwarf_cu->DIE().GetAttributeValueAsString( in ParseImportedModules()
1119 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseLineTable() local
1120 if (!dwarf_cu) in ParseLineTable()
1123 dw_offset_t offset = dwarf_cu->GetLineTableOffset(); in ParseLineTable()
1130 ParseLLVMLineTable(m_context, line, offset, dwarf_cu->GetOffset()); in ParseLineTable()
1202 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseDebugMacros() local
1203 if (dwarf_cu == nullptr) in ParseDebugMacros()
1206 const DWARFBaseDIE dwarf_cu_die = dwarf_cu->GetUnitDIEOnly(); in ParseDebugMacros()
1617 SymbolFileDWARF::GetCompUnitForDWARFCompUnit(DWARFCompileUnit &dwarf_cu) { in GetCompUnitForDWARFCompUnit() argument
1618 if (dwarf_cu.IsDWOUnit()) { in GetCompUnitForDWARFCompUnit()
1620 static_cast<DWARFCompileUnit *>(dwarf_cu.GetUserData()); in GetCompUnitForDWARFCompUnit()
1626 if (dwarf_cu.GetUserData() == nullptr) { in GetCompUnitForDWARFCompUnit()
1629 return ParseCompileUnit(dwarf_cu).get(); in GetCompUnitForDWARFCompUnit()
1631 return static_cast<CompileUnit *>(dwarf_cu.GetUserData()); in GetCompUnitForDWARFCompUnit()
1685 static uint64_t GetDWOId(DWARFCompileUnit &dwarf_cu, in GetDWOId() argument
1688 cu_die.GetAttributeValueAsUnsigned(&dwarf_cu, DW_AT_GNU_dwo_id, 0); in GetDWOId()
1690 dwo_id = cu_die.GetAttributeValueAsUnsigned(&dwarf_cu, DW_AT_dwo_id, 0); in GetDWOId()
1716 DWARFCompileUnit *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(&unit); in GetDwoSymbolFileForCompileUnit() local
1718 if (!dwarf_cu) in GetDwoSymbolFileForCompileUnit()
1721 const char *dwo_name = GetDWOName(*dwarf_cu, cu_die); in GetDwoSymbolFileForCompileUnit()
1732 cu_die.GetAttributeValueAsString(dwarf_cu, DW_AT_comp_dir, nullptr); in GetDwoSymbolFileForCompileUnit()
1768 dwarf_cu->GetID()); in GetDwoSymbolFileForCompileUnit()
1780 auto *dwarf_cu = in UpdateExternalModuleListIfNeeded() local
1782 if (!dwarf_cu) in UpdateExternalModuleListIfNeeded()
1785 const DWARFBaseDIE die = dwarf_cu->GetUnitDIEOnly(); in UpdateExternalModuleListIfNeeded()
1798 const char *dwo_path = GetDWOName(*dwarf_cu, *die.GetDIE()); in UpdateExternalModuleListIfNeeded()
1850 uint64_t dwo_id = ::GetDWOId(*dwarf_cu, *die.GetDIE()); in UpdateExternalModuleListIfNeeded()
1988 if (auto *dwarf_cu = llvm::dyn_cast_or_null<DWARFCompileUnit>( in ResolveSymbolContext() local
1991 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu); in ResolveSymbolContext()
2171 auto *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(die.GetCU()); in FindGlobalVariables() local
2172 if (!dwarf_cu) in FindGlobalVariables()
2174 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu); in FindGlobalVariables()
2234 DWARFCompileUnit *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(die.GetCU()); in FindGlobalVariables() local
2235 if (!dwarf_cu) in FindGlobalVariables()
2237 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu); in FindGlobalVariables()
2586 if (auto *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(die.GetCU())) in GetTypeForDIE() local
2587 scope = GetCompUnitForDWARFCompUnit(*dwarf_cu); in GetTypeForDIE()
2693 DWARFUnit *dwarf_cu = debug_info.GetUnitAtIndex(cu_idx); in Supports_DW_AT_APPLE_objc_complete_type() local
2694 if (dwarf_cu != cu && in Supports_DW_AT_APPLE_objc_complete_type()
2695 dwarf_cu->Supports_DW_AT_APPLE_objc_complete_type()) { in Supports_DW_AT_APPLE_objc_complete_type()
3048 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(comp_unit); in ParseBlocksRecursive() local
3049 if (!dwarf_cu) in ParseBlocksRecursive()
3055 dwarf_cu->GetNonSkeletonUnit().GetDIE(function_die_offset); in ParseBlocksRecursive()
3067 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit); in ParseTypes() local
3068 if (dwarf_cu) { in ParseTypes()
3069 DWARFDIE dwarf_cu_die = dwarf_cu->DIE(); in ParseTypes()
3101 DWARFUnit *dwarf_cu = DebugInfo().GetUnitAtIndex(sc.comp_unit->GetID()); in ParseVariablesForContext() local
3103 if (dwarf_cu == nullptr) in ParseVariablesForContext()
3113 m_index->GetGlobalVariables(*dwarf_cu, [&](DWARFDIE die) { in ParseVariablesForContext()
3253 const DWARFUnit *dwarf_cu = location_form.GetUnit(); in ParseVariableDIE() local
3254 if (DWARFExpression::ParseDWARFLocationList(dwarf_cu, data, in ParseVariableDIE()