Make the FindTypes(std::vector<CompilerContext>, ...) API testable in lldb-test
authorAdrian Prantl <aprantl@apple.com>
Tue, 20 Aug 2019 16:44:25 +0000 (16:44 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 20 Aug 2019 16:44:25 +0000 (16:44 +0000)
commit260aa0f0f3a6f1120bcd537f4ee9379f0413a775
tree8d99ba40cec818d033e88cfb1a3d769caf4e00d4
parentab50b830d02f4281cf0c57d0a8c0c51ad82bccc9
Make the FindTypes(std::vector<CompilerContext>, ...) API testable in lldb-test

This adds a -compiler-context=<...> option to lldb-test that trakes a
comma-separated string that is a list of kind/name pairs and
translates it into a std::vector<CompilerContext>, a CompilerContext
being a pair of context-kind and name.

Differential Revision: https://reviews.llvm.org/D66453

<rdar://problem/54471165>

llvm-svn: 369407
lldb/lit/SymbolFile/DWARF/compilercontext.ll [new file with mode: 0644]
lldb/lit/SymbolFile/DWARF/lit.local.cfg
lldb/tools/lldb-test/lldb-test.cpp