diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-08-22 21:45:58 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-08-22 21:45:58 +0000 |
commit | aa97a89d832b5c0b7340d12fb3a889d78bdd62e7 (patch) | |
tree | 9944d8818d0cce27dae9666f02d6f65f9ff47073 /lldb/include/lldb/lldb-private-interfaces.h | |
parent | f88dfd8309b4f4852de657c41a29620f08f171a9 (diff) | |
download | bcm5719-llvm-aa97a89d832b5c0b7340d12fb3a889d78bdd62e7.tar.gz bcm5719-llvm-aa97a89d832b5c0b7340d12fb3a889d78bdd62e7.zip |
Extend FindTypes with CompilerContext to allow filtering by language.
This patch is also motivated by the Swift branch and is effectively NFC for the single-TypeSystem llvm.org branch.
In multi-language projects it is extremely common to have, e.g., a
Clang type and a similarly-named rendition of that same type in
another language. When searching for a type It is much cheaper to pass
a set of supported languages to the SymbolFile than having it
materialize every result and then rejecting the materialized types
that have the wrong language.
Differential Revision: https://reviews.llvm.org/D66546
<rdar://problem/54471165>
This reapplies r369690 with a previously missing constructor for LanguageSet.
llvm-svn: 369710
Diffstat (limited to 'lldb/include/lldb/lldb-private-interfaces.h')
-rw-r--r-- | lldb/include/lldb/lldb-private-interfaces.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lldb/include/lldb/lldb-private-interfaces.h b/lldb/include/lldb/lldb-private-interfaces.h index 717697530b5..04b78bcc19f 100644 --- a/lldb/include/lldb/lldb-private-interfaces.h +++ b/lldb/include/lldb/lldb-private-interfaces.h @@ -102,11 +102,6 @@ typedef lldb::REPLSP (*REPLCreateInstance)(Status &error, lldb::LanguageType language, Debugger *debugger, Target *target, const char *repl_options); -typedef void (*TypeSystemEnumerateSupportedLanguages)( - std::set<lldb::LanguageType> &languages_for_types, - std::set<lldb::LanguageType> &languages_for_expressions); -typedef void (*REPLEnumerateSupportedLanguages)( - std::set<lldb::LanguageType> &languages); typedef int (*ComparisonFunction)(const void *, const void *); typedef void (*DebuggerInitializeCallback)(Debugger &debugger); |