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));
727 DWARFCompileUnit *SymbolFileDWARF::GetDWARFCompileUnit(CompileUnit *comp_unit) {
728 if (!comp_unit)
732 DWARFUnit *dwarf_cu = DebugInfo().GetUnitAtIndex(comp_unit->GetID());
734 dwarf_cu->SetLLDBCompUnit(comp_unit);
781 CompileUnit *comp_unit = dwarf_cu.GetLLDBCompUnit();
782 if (comp_unit) {
784 cu_sp = comp_unit->shared_from_this();
902 Function *SymbolFileDWARF::ParseFunction(CompileUnit &comp_unit,
946 return dwarf_ast->ParseFunctionFromDWARF(comp_unit, die, func_range);
990 lldb::LanguageType SymbolFileDWARF::ParseLanguage(CompileUnit &comp_unit) {
992 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
999 XcodeSDK SymbolFileDWARF::ParseXcodeSDK(CompileUnit &comp_unit) {
1001 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1016 ModuleSP module_sp = comp_unit.GetModule();
1027 size_t SymbolFileDWARF::ParseFunctions(CompileUnit &comp_unit) {
1030 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1041 if (comp_unit.FindFunctionByUID(die.GetID()))
1043 if (ParseFunction(comp_unit, die))
1051 CompileUnit &comp_unit,
1078 bool SymbolFileDWARF::ParseSupportFiles(CompileUnit &comp_unit,
1081 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1085 if (!ParseSupportFiles(*dwarf_cu, comp_unit.GetModule(), support_files))
1162 bool SymbolFileDWARF::ParseIsOptimized(CompileUnit &comp_unit) {
1164 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1174 assert(sc.comp_unit);
1175 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
1179 sc.comp_unit->GetLanguage()))
1225 bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
1227 if (comp_unit.GetLineTable() != nullptr)
1230 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1272 std::make_unique<LineTable>(&comp_unit, std::move(sequences));
1278 comp_unit.SetLineTable(
1281 comp_unit.SetLineTable(line_table_up.release());
1310 bool SymbolFileDWARF::ParseDebugMacros(CompileUnit &comp_unit) {
1313 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1329 comp_unit.SetDebugMacros(ParseDebugMacros(§_offset));
1335 lldb_private::CompileUnit &comp_unit, Block *parent_block,
1415 comp_unit.GetSupportFiles().GetFileSpecAtIndex(
1422 comp_unit.GetSupportFiles().GetFileSpecAtIndex(
1434 ParseBlocksRecursive(comp_unit, block, die.GetFirstChild(),
1731 sc.comp_unit =
1734 sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
1736 sc.function = ParseFunction(*sc.comp_unit, die);
1815 if (auto comp_unit = GetCompileUnitAtIndex(0))
1816 if (DWARFCompileUnit *cu = GetDWARFCompileUnit(comp_unit.get()))
2160 assert(sc.comp_unit);
2162 GetDWARFCompileUnit(sc.comp_unit)->GetNonSkeletonUnit();
2166 sc.function = sc.comp_unit->FindFunctionByUID(function_die.GetID()).get();
2168 sc.function = ParseFunction(*sc.comp_unit, function_die);
2228 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2229 if (sc.comp_unit) {
2253 LineTable *line_table = sc.comp_unit->GetLineTable();
2276 sc.comp_unit = nullptr;
2411 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2480 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
3248 child_sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
3264 CompileUnit *comp_unit = func.GetCompileUnit();
3265 lldbassert(comp_unit);
3267 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(comp_unit);
3276 ParseBlocksRecursive(*comp_unit, &func.GetBlock(false), function_die,
3283 size_t SymbolFileDWARF::ParseTypes(CompileUnit &comp_unit) {
3286 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
3291 sc.comp_unit = &comp_unit;
3301 if (sc.comp_unit != nullptr) {
3318 } else if (sc.comp_unit) {
3319 DWARFUnit *dwarf_cu = DebugInfo().GetUnitAtIndex(sc.comp_unit->GetID());
3325 VariableListSP variables(sc.comp_unit->GetVariableList(false));
3329 sc.comp_unit->SetVariableList(variables);
3689 symbol_context_scope = sc.comp_unit;
3790 if (sc.comp_unit != nullptr) {
3791 variable_list_sp = sc.comp_unit->GetVariableList(false);
4430 CompileUnit *cu = frame.GetSymbolContext(eSymbolContextCompUnit).comp_unit;
4466 lldb::CompUnitSP comp_unit = GetCompileUnitAtIndex(cu_idx);
4467 if (!comp_unit)
4470 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(comp_unit.get());
4482 args.insert({comp_unit, Args(flags)});