Lines Matching defs:dwarf_cu

358   DWARFUnit *dwarf_cu = nullptr;
363 dwarf_cu = GetDWARFCompileUnit(comp_unit);
364 if (!dwarf_cu)
366 GetTypes(dwarf_cu->DIE(), dwarf_cu->GetOffset(),
367 dwarf_cu->GetNextUnitOffset(), type_mask, type_set);
373 dwarf_cu = info->GetUnitAtIndex(cu_idx);
374 if (dwarf_cu) {
375 GetTypes(dwarf_cu->DIE(), 0, UINT32_MAX, type_mask, type_set);
648 DWARFUnit *dwarf_cu = info->GetUnitAtIndex(comp_unit->GetID());
649 if (dwarf_cu && dwarf_cu->GetUserData() == nullptr)
650 dwarf_cu->SetUserData(comp_unit);
651 return dwarf_cu;
671 lldb::CompUnitSP SymbolFileDWARF::ParseCompileUnit(DWARFCompileUnit &dwarf_cu) {
673 CompileUnit *comp_unit = (CompileUnit *)dwarf_cu.GetUserData();
678 if (&dwarf_cu.GetSymbolFileDWARF() != this) {
679 return dwarf_cu.GetSymbolFileDWARF().ParseCompileUnit(dwarf_cu);
680 } else if (dwarf_cu.GetOffset() == 0 && GetDebugMapSymfile()) {
683 dwarf_cu.SetUserData(cu_sp.get());
688 dwarf_cu.GetNonSkeletonUnit().GetUnitDIEOnly();
690 FileSpec cu_file_spec(cu_die.GetName(), dwarf_cu.GetPathStyle());
695 cu_file_spec.MakeAbsolute(dwarf_cu.GetCompilationDirectory());
706 bool is_optimized = dwarf_cu.GetNonSkeletonUnit().GetIsOptimized();
709 module_sp, &dwarf_cu, cu_file_spec,
710 *GetDWARFUnitIndex(dwarf_cu.GetID()), cu_language,
713 dwarf_cu.SetUserData(cu_sp.get());
715 SetCompileUnitAtIndex(dwarf_cu.GetID(), cu_sp);
768 if (auto *dwarf_cu = llvm::cast_or_null<DWARFCompileUnit>(
770 return ParseCompileUnit(*dwarf_cu);
805 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
806 if (dwarf_cu)
807 return dwarf_cu->GetLanguageType();
816 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
817 if (!dwarf_cu)
821 dwarf_cu = &dwarf_cu->GetNonSkeletonUnit();
822 for (DWARFDebugInfoEntry &entry : dwarf_cu->dies()) {
826 DWARFDIE die(dwarf_cu, &entry);
872 if (auto *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(&unit)) {
873 if (CompileUnit *lldb_cu = GetCompUnitForDWARFCompUnit(*dwarf_cu))
917 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
918 if (dwarf_cu)
919 return dwarf_cu->GetIsOptimized();
928 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
929 if (!dwarf_cu)
936 const DWARFDIE die = dwarf_cu->DIE();
980 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
981 if (!dwarf_cu)
984 const DWARFBaseDIE dwarf_cu_die = dwarf_cu->GetUnitDIEOnly();
995 m_context, line, cu_line_offset, dwarf_cu->GetOffset());
1028 comp_unit.GetModule(), line_table->Prologue, dwarf_cu->GetPathStyle(),
1029 dwarf_cu->GetCompilationDirectory().GetCString()));
1059 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1060 if (dwarf_cu == nullptr)
1063 const DWARFBaseDIE dwarf_cu_die = dwarf_cu->GetUnitDIEOnly();
1475 SymbolFileDWARF::GetCompUnitForDWARFCompUnit(DWARFCompileUnit &dwarf_cu) {
1477 if (dwarf_cu.GetUserData() == nullptr) {
1480 return ParseCompileUnit(dwarf_cu).get();
1482 return (CompileUnit *)dwarf_cu.GetUserData();
1539 static const char *GetDWOName(DWARFCompileUnit &dwarf_cu,
1542 cu_die.GetAttributeValueAsString(&dwarf_cu, DW_AT_GNU_dwo_name, nullptr);
1545 cu_die.GetAttributeValueAsString(&dwarf_cu, DW_AT_dwo_name, nullptr);
1551 static uint64_t GetDWOId(DWARFCompileUnit &dwarf_cu,
1554 cu_die.GetAttributeValueAsUnsigned(&dwarf_cu, DW_AT_GNU_dwo_id, 0);
1556 dwo_id = cu_die.GetAttributeValueAsUnsigned(&dwarf_cu, DW_AT_dwo_id, 0);
1583 DWARFCompileUnit *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(&unit);
1585 if (!dwarf_cu)
1588 const char *dwo_name = GetDWOName(*dwarf_cu, cu_die);
1594 uint64_t dwo_id = ::GetDWOId(*dwarf_cu, cu_die);
1596 dwp_symfile->GetSymbolFileForDwoId(*dwarf_cu, dwo_id);
1605 cu_die.GetAttributeValueAsString(dwarf_cu, DW_AT_comp_dir, nullptr);
1627 return std::make_unique<SymbolFileDWARFDwo>(dwo_obj_file, *dwarf_cu);
1639 auto *dwarf_cu =
1641 if (!dwarf_cu)
1644 const DWARFBaseDIE die = dwarf_cu->GetUnitDIEOnly();
1657 const char *dwo_path = GetDWOName(*dwarf_cu, *die.GetDIE());
1709 uint64_t dwo_id = ::GetDWOId(*dwarf_cu, *die.GetDIE());
1829 if (auto *dwarf_cu = llvm::dyn_cast_or_null<DWARFCompileUnit>(
1832 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
1839 DWARFDIE function_die = dwarf_cu->LookupAddress(file_vm_addr);
2128 auto *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(die.GetCU());
2129 if (!dwarf_cu)
2131 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2212 DWARFCompileUnit *dwarf_cu =
2214 if (!dwarf_cu)
2216 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2634 if (auto *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(die.GetCU()))
2635 scope = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2741 DWARFUnit *dwarf_cu = debug_info->GetUnitAtIndex(cu_idx);
2742 if (dwarf_cu != cu &&
2743 dwarf_cu->Supports_DW_AT_APPLE_objc_complete_type()) {
3121 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(comp_unit);
3122 if (!dwarf_cu)
3127 DWARFDIE function_die = dwarf_cu->GetDIE(function_die_offset);
3139 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
3140 if (dwarf_cu) {
3141 DWARFDIE dwarf_cu_die = dwarf_cu->DIE();
3173 DWARFUnit *dwarf_cu = info->GetUnitAtIndex(sc.comp_unit->GetID());
3175 if (dwarf_cu == nullptr)
3186 m_index->GetGlobalVariables(dwarf_cu->GetNonSkeletonUnit(),