File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
lldb/source/Plugins/SymbolFile/CTF Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -925,18 +925,23 @@ lldb_private::Type *SymbolFileCTF::ResolveTypeUID(lldb::user_id_t type_uid) {
925
925
return GetTypeForUID (type_uid).get ();
926
926
}
927
927
928
- void SymbolFileCTF::FindTypes (const lldb_private::TypeQuery &match,
929
- lldb_private::TypeResults &results) {
930
- // Make sure we haven't already searched this SymbolFile before.
931
- if (results.AlreadySearched (this ))
932
- return ;
928
+ void SymbolFileCTF::FindTypes (
929
+ lldb_private::ConstString name,
930
+ const lldb_private::CompilerDeclContext &parent_decl_ctx,
931
+ uint32_t max_matches,
932
+ llvm::DenseSet<lldb_private::SymbolFile *> &searched_symbol_files,
933
+ lldb_private::TypeMap &types) {
934
+
935
+ searched_symbol_files.clear ();
936
+ searched_symbol_files.insert (this );
933
937
934
- ConstString name = match.GetTypeBasename ();
935
- for (TypeSP type_sp : GetTypeList ().Types ()) {
938
+ size_t matches = 0 ;
939
+ for (TypeSP type_sp : m_types) {
940
+ if (matches == max_matches)
941
+ break ;
936
942
if (type_sp && type_sp->GetName () == name) {
937
- results.InsertUnique (type_sp);
938
- if (results.Done (match))
939
- return ;
943
+ types.Insert (type_sp);
944
+ matches++;
940
945
}
941
946
}
942
947
}
You can’t perform that action at this time.
0 commit comments