[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 11 06:27:41 PST 2023
================
@@ -1446,23 +1446,23 @@ void SymbolFilePDB::AddSymbols(lldb_private::Symtab &symtab) {
symtab.Finalize();
}
-void SymbolFilePDB::FindTypes(
- lldb_private::ConstString name, const CompilerDeclContext &parent_decl_ctx,
- uint32_t max_matches,
- llvm::DenseSet<lldb_private::SymbolFile *> &searched_symbol_files,
- lldb_private::TypeMap &types) {
- std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
- if (!name)
- return;
- if (!DeclContextMatchesThisSymbolFile(parent_decl_ctx))
- return;
-
- searched_symbol_files.clear();
- searched_symbol_files.insert(this);
-
- // There is an assumption 'name' is not a regex
- FindTypesByName(name.GetStringRef(), parent_decl_ctx, max_matches, types);
-}
+// void SymbolFilePDB::FindTypes(
+// lldb_private::ConstString name, const CompilerDeclContext
+// &parent_decl_ctx, uint32_t max_matches,
+// llvm::DenseSet<lldb_private::SymbolFile *> &searched_symbol_files,
+// lldb_private::TypeMap &types) {
+// std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
+// if (!name)
+// return;
+// if (!DeclContextMatchesThisSymbolFile(parent_decl_ctx))
+// return;
+
+// searched_symbol_files.clear();
+// searched_symbol_files.insert(this);
+
+// // There is an assumption 'name' is not a regex
+// FindTypesByName(name.GetStringRef(), parent_decl_ctx, max_matches, types);
+// }
----------------
Michael137 wrote:
Can we remove this?
https://github.com/llvm/llvm-project/pull/74786
More information about the lldb-commits
mailing list