diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-09-30 16:42:28 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-09-30 16:42:28 +0000 |
commit | d4d428ef92a0ddfeafc48e35ff538654619d40eb (patch) | |
tree | 91df6a06c7beb00f7e0d94635652ad3fb407fb49 /lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp | |
parent | 09025ca6fc7221d0447ffa1d0fd8a460588f748f (diff) | |
download | bcm5719-llvm-d4d428ef92a0ddfeafc48e35ff538654619d40eb.tar.gz bcm5719-llvm-d4d428ef92a0ddfeafc48e35ff538654619d40eb.zip |
Remove unused "append" parameter from FindTypes API
I noticed that SymbolFileDWARFDebugMap::FindTypes was implementing it
incorrectly (passing append=false in a for-loop to recursive calls to
FindTypes would yield only the very last set of results), but instead
of fixing it, removing it seemed like an even better option.
rdar://problem/54412692
Differential Revision: https://reviews.llvm.org/D68171
llvm-svn: 373224
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp index efd3b0cc940..850a2d9ef59 100644 --- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp +++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp @@ -1443,13 +1443,11 @@ void SymbolFilePDB::AddSymbols(lldb_private::Symtab &symtab) { uint32_t SymbolFilePDB::FindTypes( lldb_private::ConstString name, - const lldb_private::CompilerDeclContext *parent_decl_ctx, bool append, + const lldb_private::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 (!append) - types.Clear(); if (!name) return 0; if (!DeclContextMatchesThisSymbolFile(parent_decl_ctx)) @@ -1585,10 +1583,8 @@ void SymbolFilePDB::FindTypesByName( } size_t SymbolFilePDB::FindTypes(llvm::ArrayRef<CompilerContext> pattern, - LanguageSet languages, bool append, + LanguageSet languages, lldb_private::TypeMap &types) { - if (!append) - types.Clear(); return 0; } |