summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/SymbolFile.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-09-30 16:42:28 +0000
committerAdrian Prantl <aprantl@apple.com>2019-09-30 16:42:28 +0000
commitd4d428ef92a0ddfeafc48e35ff538654619d40eb (patch)
tree91df6a06c7beb00f7e0d94635652ad3fb407fb49 /lldb/source/Symbol/SymbolFile.cpp
parent09025ca6fc7221d0447ffa1d0fd8a460588f748f (diff)
downloadbcm5719-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/Symbol/SymbolFile.cpp')
-rw-r--r--lldb/source/Symbol/SymbolFile.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/source/Symbol/SymbolFile.cpp b/lldb/source/Symbol/SymbolFile.cpp
index b1fc8520d76..b47f0122326 100644
--- a/lldb/source/Symbol/SymbolFile.cpp
+++ b/lldb/source/Symbol/SymbolFile.cpp
@@ -141,19 +141,14 @@ void SymbolFile::GetMangledNamesForFunction(
uint32_t SymbolFile::FindTypes(
ConstString name, const CompilerDeclContext *parent_decl_ctx,
- bool append, uint32_t max_matches,
+ uint32_t max_matches,
llvm::DenseSet<lldb_private::SymbolFile *> &searched_symbol_files,
TypeMap &types) {
- if (!append)
- types.Clear();
return 0;
}
size_t SymbolFile::FindTypes(llvm::ArrayRef<CompilerContext> pattern,
- LanguageSet languages, bool append,
- TypeMap &types) {
- if (!append)
- types.Clear();
+ LanguageSet languages, TypeMap &types) {
return 0;
}
OpenPOWER on IntegriCloud