[lldb/test] Simplify/generalize YAMLModuleTester
authorPavel Labath <pavel@labath.sk>
Thu, 29 Oct 2020 13:25:24 +0000 (14:25 +0100)
committerPavel Labath <pavel@labath.sk>
Fri, 30 Oct 2020 13:27:50 +0000 (14:27 +0100)
commita895a446bcde4d78572ced8ff0b559f476aa4274
tree236c5d6bd93a1317efc743d975c3f8836cbc05fc
parentd085697013b447abd9a8779eddec606f48626bb9
[lldb/test] Simplify/generalize YAMLModuleTester

The class only supports a single DWARF unit (needed for my new test), and it
reimplements chunks of object and symbol file classes. We can just make it use
the real thing, save some LOC and get the full feature set.

Differential Revision: https://reviews.llvm.org/D90393
lldb/unittests/Expression/DWARFExpressionTest.cpp
lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
lldb/unittests/TestingSupport/Symbol/CMakeLists.txt
lldb/unittests/TestingSupport/Symbol/YAMLModuleTester.cpp
lldb/unittests/TestingSupport/Symbol/YAMLModuleTester.h