Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
Show First 20 Lines • Show All 1,054 Lines • ▼ Show 20 Lines | if (sc_scope) { | ||||
ForEachSymbolFile([&](SymbolFileDWARF *oso_dwarf) -> bool { | ForEachSymbolFile([&](SymbolFileDWARF *oso_dwarf) -> bool { | ||||
oso_dwarf->GetTypes(sc_scope, type_mask, type_list); | oso_dwarf->GetTypes(sc_scope, type_mask, type_list); | ||||
return false; | return false; | ||||
}); | }); | ||||
} | } | ||||
return type_list.GetSize() - initial_size; | return type_list.GetSize() - initial_size; | ||||
} | } | ||||
std::vector<lldb_private::CallEdge> | |||||
SymbolFileDWARFDebugMap::ParseCallEdgesInFunction(UserID func_id) { | |||||
uint32_t oso_idx = GetOSOIndexFromUserID(func_id.GetID()); | |||||
SymbolFileDWARF *oso_dwarf = GetSymbolFileByOSOIndex(oso_idx); | |||||
if (oso_dwarf) | |||||
return oso_dwarf->ParseCallEdgesInFunction(func_id); | |||||
return {}; | |||||
} | |||||
TypeSP SymbolFileDWARFDebugMap::FindDefinitionTypeForDWARFDeclContext( | TypeSP SymbolFileDWARFDebugMap::FindDefinitionTypeForDWARFDeclContext( | ||||
const DWARFDeclContext &die_decl_ctx) { | const DWARFDeclContext &die_decl_ctx) { | ||||
TypeSP type_sp; | TypeSP type_sp; | ||||
ForEachSymbolFile([&](SymbolFileDWARF *oso_dwarf) -> bool { | ForEachSymbolFile([&](SymbolFileDWARF *oso_dwarf) -> bool { | ||||
type_sp = oso_dwarf->FindDefinitionTypeForDWARFDeclContext(die_decl_ctx); | type_sp = oso_dwarf->FindDefinitionTypeForDWARFDeclContext(die_decl_ctx); | ||||
return ((bool)type_sp); | return ((bool)type_sp); | ||||
}); | }); | ||||
return type_sp; | return type_sp; | ||||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |