summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/SymbolFile.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-08-21 18:06:56 +0000
committerAdrian Prantl <aprantl@apple.com>2019-08-21 18:06:56 +0000
commit330ae19a1a563f5031954d1998001c624eb71b18 (patch)
tree5ca3e50c81b9b77a050e7d140944b6606bcea436 /lldb/source/Symbol/SymbolFile.cpp
parent2213bbb57aa7c928735c428cd1307ed277d2db7a (diff)
downloadbcm5719-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/Symbol/SymbolFile.cpp')
-rw-r--r--lldb/source/Symbol/SymbolFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Symbol/SymbolFile.cpp b/lldb/source/Symbol/SymbolFile.cpp
index 8b9d8d31144..1cbfb4cb0b0 100644
--- a/lldb/source/Symbol/SymbolFile.cpp
+++ b/lldb/source/Symbol/SymbolFile.cpp
@@ -149,7 +149,7 @@ uint32_t SymbolFile::FindTypes(
return 0;
}
-size_t SymbolFile::FindTypes(const std::vector<CompilerContext> &context,
+size_t SymbolFile::FindTypes(llvm::ArrayRef<CompilerContext> pattern,
bool append, TypeMap &types) {
if (!append)
types.Clear();
OpenPOWER on IntegriCloud