diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-08-21 18:06:56 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-08-21 18:06:56 +0000 |
commit | 330ae19a1a563f5031954d1998001c624eb71b18 (patch) | |
tree | 5ca3e50c81b9b77a050e7d140944b6606bcea436 /lldb/source/Plugins/SymbolFile/Breakpad | |
parent | 2213bbb57aa7c928735c428cd1307ed277d2db7a (diff) | |
download | bcm5719-llvm-330ae19a1a563f5031954d1998001c624eb71b18.tar.gz bcm5719-llvm-330ae19a1a563f5031954d1998001c624eb71b18.zip |
Generalize FindTypes with CompilerContext to support fuzzy lookup
This patch generalizes the FindTypes with CompilerContext interface to
support looking up a type of unknown kind by name, as well as looking
up a type inside an unspecified submodule. These features are
motivated by the Swift branch, but are fully tested via unit tests and
lldb-test on llvm.org. Specifically, this patch adds an AnyModule and
an AnyType CompilerContext kind.
Differential Revision: https://reviews.llvm.org/D66507
rdar://problem/54471165
llvm-svn: 369555
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/Breakpad')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp | 5 | ||||
-rw-r--r-- | lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp b/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp index 73ee707394b..d5f51458eb1 100644 --- a/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp +++ b/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp @@ -318,9 +318,8 @@ uint32_t SymbolFileBreakpad::FindTypes( return types.GetSize(); } -size_t -SymbolFileBreakpad::FindTypes(const std::vector<CompilerContext> &context, - bool append, TypeMap &types) { +size_t SymbolFileBreakpad::FindTypes(llvm::ArrayRef<CompilerContext> pattern, + bool append, TypeMap &types) { if (!append) types.Clear(); return types.GetSize(); diff --git a/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h b/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h index 6f256274b02..def975efc94 100644 --- a/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h +++ b/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h @@ -116,7 +116,7 @@ public: llvm::DenseSet<SymbolFile *> &searched_symbol_files, TypeMap &types) override; - size_t FindTypes(const std::vector<CompilerContext> &context, bool append, + size_t FindTypes(llvm::ArrayRef<CompilerContext> pattern, bool append, TypeMap &types) override; llvm::Expected<TypeSystem &> |