Lines Matching defs:comp_unit

417   CompileUnit *comp_unit = nullptr;
419 comp_unit = sc_scope->CalculateSymbolContextCompileUnit();
428 if (comp_unit) {
429 get(GetDWARFCompileUnit(comp_unit));
733 DWARFCompileUnit *SymbolFileDWARF::GetDWARFCompileUnit(CompileUnit *comp_unit) {
734 if (!comp_unit)
738 DWARFUnit *dwarf_cu = DebugInfo().GetUnitAtIndex(comp_unit->GetID());
740 dwarf_cu->SetLLDBCompUnit(comp_unit);
774 CompileUnit *comp_unit = dwarf_cu.GetLLDBCompUnit();
775 if (comp_unit) {
777 cu_sp = comp_unit->shared_from_this();
895 Function *SymbolFileDWARF::ParseFunction(CompileUnit &comp_unit,
932 return dwarf_ast->ParseFunctionFromDWARF(comp_unit, die, std::move(ranges));
976 lldb::LanguageType SymbolFileDWARF::ParseLanguage(CompileUnit &comp_unit) {
978 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
985 XcodeSDK SymbolFileDWARF::ParseXcodeSDK(CompileUnit &comp_unit) {
987 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1002 ModuleSP module_sp = comp_unit.GetModule();
1013 size_t SymbolFileDWARF::ParseFunctions(CompileUnit &comp_unit) {
1016 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1027 if (comp_unit.FindFunctionByUID(die.GetID()))
1029 if (ParseFunction(comp_unit, die))
1037 CompileUnit &comp_unit,
1064 bool SymbolFileDWARF::ParseSupportFiles(CompileUnit &comp_unit,
1067 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1071 if (!ParseSupportFiles(*dwarf_cu, comp_unit.GetModule(), support_files))
1148 bool SymbolFileDWARF::ParseIsOptimized(CompileUnit &comp_unit) {
1150 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1160 assert(sc.comp_unit);
1161 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
1165 sc.comp_unit->GetLanguage()))
1211 bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
1213 if (comp_unit.GetLineTable() != nullptr)
1216 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1258 std::make_unique<LineTable>(&comp_unit, std::move(sequences));
1264 comp_unit.SetLineTable(
1267 comp_unit.SetLineTable(line_table_up.release());
1296 bool SymbolFileDWARF::ParseDebugMacros(CompileUnit &comp_unit) {
1299 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1315 comp_unit.SetDebugMacros(ParseDebugMacros(&sect_offset));
1320 size_t SymbolFileDWARF::ParseBlocksRecursive(CompileUnit &comp_unit,
1366 comp_unit.GetSupportFiles().GetFileSpecAtIndex(
1373 comp_unit.GetSupportFiles().GetFileSpecAtIndex(
1385 comp_unit, block, die.GetFirstChild(), subprogram_low_pc);
1670 sc.comp_unit =
1673 sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
1675 sc.function = ParseFunction(*sc.comp_unit, die);
1754 if (auto comp_unit = GetCompileUnitAtIndex(0))
1755 if (DWARFCompileUnit *cu = GetDWARFCompileUnit(comp_unit.get()))
2100 assert(sc.comp_unit);
2102 GetDWARFCompileUnit(sc.comp_unit)->GetNonSkeletonUnit();
2106 sc.function = sc.comp_unit->FindFunctionByUID(function_die.GetID()).get();
2108 sc.function = ParseFunction(*sc.comp_unit, function_die);
2168 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2169 if (sc.comp_unit) {
2193 LineTable *line_table = sc.comp_unit->GetLineTable();
2216 sc.comp_unit = nullptr;
2351 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2420 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
3141 child_sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
3157 CompileUnit *comp_unit = func.GetCompileUnit();
3158 lldbassert(comp_unit);
3160 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(comp_unit);
3179 ParseBlocksRecursive(*comp_unit, &func.GetBlock(false),
3190 size_t SymbolFileDWARF::ParseTypes(CompileUnit &comp_unit) {
3193 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
3198 sc.comp_unit = &comp_unit;
3208 if (sc.comp_unit != nullptr) {
3230 } else if (sc.comp_unit) {
3231 DWARFUnit *dwarf_cu = DebugInfo().GetUnitAtIndex(sc.comp_unit->GetID());
3237 VariableListSP variables(sc.comp_unit->GetVariableList(false));
3241 sc.comp_unit->SetVariableList(variables);
3607 symbol_context_scope = sc.comp_unit;
3708 if (sc.comp_unit != nullptr) {
3709 variable_list_sp = sc.comp_unit->GetVariableList(false);
4365 CompileUnit *cu = frame.GetSymbolContext(eSymbolContextCompUnit).comp_unit;
4402 lldb::CompUnitSP comp_unit = GetCompileUnitAtIndex(cu_idx);
4403 if (!comp_unit)
4406 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(comp_unit.get());
4418 args.insert({comp_unit, Args(flags)});