Lines Matching defs:comp_unit

357   CompileUnit *comp_unit = nullptr;
360 comp_unit = sc_scope->CalculateSymbolContextCompileUnit();
362 if (comp_unit) {
363 dwarf_cu = GetDWARFCompileUnit(comp_unit);
641 SymbolFileDWARF::GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit) {
642 if (!comp_unit)
648 DWARFUnit *dwarf_cu = info->GetUnitAtIndex(comp_unit->GetID());
650 dwarf_cu->SetUserData(comp_unit);
673 CompileUnit *comp_unit = (CompileUnit *)dwarf_cu.GetUserData();
674 if (comp_unit) {
676 cu_sp = comp_unit->shared_from_this();
775 Function *SymbolFileDWARF::ParseFunction(CompileUnit &comp_unit,
792 return dwarf_ast->ParseFunctionFromDWARF(comp_unit, die);
803 lldb::LanguageType SymbolFileDWARF::ParseLanguage(CompileUnit &comp_unit) {
805 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
812 size_t SymbolFileDWARF::ParseFunctions(CompileUnit &comp_unit) {
816 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
827 if (comp_unit.FindFunctionByUID(die.GetID()))
829 if (ParseFunction(comp_unit, die))
837 CompileUnit &comp_unit,
864 bool SymbolFileDWARF::ParseSupportFiles(CompileUnit &comp_unit,
866 if (!comp_unit.GetLineTable())
867 ParseLineTable(comp_unit);
915 bool SymbolFileDWARF::ParseIsOptimized(CompileUnit &comp_unit) {
917 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
927 assert(sc.comp_unit);
928 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
932 sc.comp_unit->GetLanguage()))
975 bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
977 if (comp_unit.GetLineTable() != nullptr)
980 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1004 std::make_unique<LineTable>(&comp_unit);
1021 comp_unit.SetLineTable(
1024 comp_unit.SetLineTable(line_table_up.release());
1027 comp_unit.SetSupportFiles(ParseSupportFilesFromPrologue(
1028 comp_unit.GetModule(), line_table->Prologue, dwarf_cu->GetPathStyle(),
1056 bool SymbolFileDWARF::ParseDebugMacros(CompileUnit &comp_unit) {
1059 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
1075 comp_unit.SetDebugMacros(ParseDebugMacros(&sect_offset));
1081 lldb_private::CompileUnit &comp_unit, Block *parent_block,
1161 comp_unit.GetSupportFiles().GetFileSpecAtIndex(decl_file),
1167 comp_unit.GetSupportFiles().GetFileSpecAtIndex(call_file),
1178 ParseBlocksRecursive(comp_unit, block, die.GetFirstChild(),
1497 sc.comp_unit =
1500 sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
1502 sc.function = ParseFunction(*sc.comp_unit, die);
1562 if (auto comp_unit = GetCompileUnitAtIndex(0))
1564 GetDWARFCompileUnit(comp_unit.get())))
1832 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
1833 if (sc.comp_unit) {
1843 sc.comp_unit->FindFunctionByUID(function_die.GetID()).get();
1845 sc.function = ParseFunction(*sc.comp_unit, function_die);
1877 LineTable *line_table = sc.comp_unit->GetLineTable();
1902 sc.comp_unit = nullptr;
1936 sc.comp_unit = dc_cu;
1943 sc.comp_unit->GetSupportFiles().FindFileIndex(1, file_spec, true);
1949 LineTable *line_table = sc.comp_unit->GetLineTable();
1955 file_idx = sc.comp_unit->GetSupportFiles().FindFileIndex(
1977 sc.comp_unit->FindFunctionByUID(function_die.GetID())
1981 ParseFunction(*sc.comp_unit, function_die);
2131 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2216 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
3102 child_sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
3118 CompileUnit *comp_unit = func.GetCompileUnit();
3119 lldbassert(comp_unit);
3121 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(comp_unit);
3129 ParseBlocksRecursive(*comp_unit, &func.GetBlock(false), function_die,
3136 size_t SymbolFileDWARF::ParseTypes(CompileUnit &comp_unit) {
3139 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(&comp_unit);
3144 sc.comp_unit = &comp_unit;
3154 if (sc.comp_unit != nullptr) {
3172 } else if (sc.comp_unit) {
3173 DWARFUnit *dwarf_cu = info->GetUnitAtIndex(sc.comp_unit->GetID());
3179 VariableListSP variables(sc.comp_unit->GetVariableList(false));
3183 sc.comp_unit->SetVariableList(variables);
3255 decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(
3562 symbol_context_scope = sc.comp_unit;
3675 if (sc.comp_unit != nullptr) {
3676 variable_list_sp = sc.comp_unit->GetVariableList(false);