[DebugInfo][unittest] Use YAML to generate the .debug_loclists section.
authorXing GUO <higuoxing@gmail.com>
Tue, 4 Aug 2020 08:37:20 +0000 (16:37 +0800)
committerXing GUO <higuoxing@gmail.com>
Tue, 4 Aug 2020 08:37:51 +0000 (16:37 +0800)
commit5d597e20dfdb8eea4c11375f1ae5940e151246c4
treee146f6eeccc2739e667da546065f12a1d4728afe
parent4bfbf74e57ad02c1b6dabe099148e079613cac54
[DebugInfo][unittest] Use YAML to generate the .debug_loclists section.

DWARFYAML supports generating the .debug_loclists section. We can use it
to simplify tests.

Reviewed By: jhenderson, grimar

Differential Revision: https://reviews.llvm.org/D85179
llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp