Lines Matching defs:comp_unit
277 lldb::LanguageType SymbolFilePDB::ParseLanguage(CompileUnit &comp_unit) {
279 auto compiland_up = GetPDBCompilandByUID(comp_unit.GetID());
290 CompileUnit &comp_unit) {
291 if (FunctionSP result = comp_unit.FindFunctionByUID(pdb_func.getSymIndexId()))
313 &comp_unit, pdb_func.getSymIndexId(), func_type_uid, mangled, func_type,
316 comp_unit.AddFunction(func_sp);
318 LanguageType lang = ParseLanguage(comp_unit);
336 size_t SymbolFilePDB::ParseFunctions(CompileUnit &comp_unit) {
339 auto compiland_up = GetPDBCompilandByUID(comp_unit.GetID());
346 auto func_sp = comp_unit.FindFunctionByUID(pdb_func_up->getSymIndexId());
348 if (ParseCompileUnitFunctionForPDBFunc(*pdb_func_up, comp_unit))
355 bool SymbolFilePDB::ParseLineTable(CompileUnit &comp_unit) {
357 if (comp_unit.GetLineTable())
359 return ParseCompileUnitLineTable(comp_unit, 0);
362 bool SymbolFilePDB::ParseDebugMacros(CompileUnit &comp_unit) {
368 CompileUnit &comp_unit, lldb_private::SupportFileList &support_files) {
376 auto compiland_up = GetPDBCompilandByUID(comp_unit.GetID());
447 size_t SymbolFilePDB::ParseTypes(CompileUnit &comp_unit) {
451 auto compiland = GetPDBCompilandByUID(comp_unit.GetID());
502 if (!sc.comp_unit)
514 } else if (sc.comp_unit) {
515 auto compiland = GetPDBCompilandByUID(sc.comp_unit->GetID());
519 if (sc.comp_unit->GetVariableList(false))
530 if (cu_id == sc.comp_unit->GetID())
745 sc.comp_unit = cu_sp.get();
759 sc.function = sc.comp_unit->FindFunctionByUID(func_uid).get();
762 ParseCompileUnitFunctionForPDBFunc(*pdb_func, *sc.comp_unit);
779 if (auto *line_table = sc.comp_unit->GetLineTable()) {
828 sc.comp_unit = cu.get();
835 bool has_line_table = ParseCompileUnitLineTable(*sc.comp_unit, line);
851 auto *line_table = sc.comp_unit->GetLineTable();
874 sc.function = sc.comp_unit->FindFunctionByUID(func_uid).get();
879 *sc.comp_unit);
990 SymbolContextScope *context_scope = sc.comp_unit;
1054 assert(sc.comp_unit);
1057 if (sc.comp_unit) {
1058 local_variable_list_sp = sc.comp_unit->GetVariableList(false);
1061 sc.comp_unit->SetVariableList(local_variable_list_sp);
1134 sc.comp_unit = ParseCompileUnitForUID(GetCompilandId(*pdb_data)).get();
1136 if (sc.comp_unit == nullptr)
1173 sc.comp_unit = ParseCompileUnitForUID(GetCompilandId(*pdb_data)).get();
1175 if (sc.comp_unit == nullptr)
1187 sc.comp_unit = ParseCompileUnitForUID(pdb_func.getCompilandId()).get();
1188 if (!sc.comp_unit)
1190 sc.module_sp = sc.comp_unit->GetModule();
1191 sc.function = ParseCompileUnitFunctionForPDBFunc(pdb_func, *sc.comp_unit);
1745 bool SymbolFilePDB::ParseCompileUnitLineTable(CompileUnit &comp_unit,
1747 auto compiland_up = GetPDBCompilandByUID(comp_unit.GetID());
1757 auto line_table = std::make_unique<LineTable>(&comp_unit);
1843 comp_unit.SetLineTable(line_table.release());