]> granicus.if.org Git - llvm/commit
[DWARF] [ObjectYAML] Adding APIs for unittesting
authorChris Bieneman <beanz@apple.com>
Fri, 20 Jan 2017 19:03:14 +0000 (19:03 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 20 Jan 2017 19:03:14 +0000 (19:03 +0000)
commit70ebae973cc4d5e1fa9138ec4d82e5cf7816b3bd
treed2379120cb002ae9d1257feaebb2bf75fc54bd89
parent84ce155044363cf0285457daa3539c8b4e40114f
[DWARF] [ObjectYAML] Adding APIs for unittesting

Summary: This patch adds some new APIs to enable using the YAML DWARF representation in unit tests. The most basic new API is DWARFYAML::EmitDebugSections which converts a YAML string into a series of owned MemoryBuffer objects stored in a StringMap. The string map can then be used to construct a DWARFContext for parsing in place of an ObjectFile.

Reviewers: dblaikie, clayborg

Subscribers: mgorny, fhahn, jgosnell, aprantl, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292634 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/ObjectYAML/DWARFEmitter.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/ObjectYAML/DWARFEmitter.cpp
unittests/DebugInfo/DWARF/CMakeLists.txt
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp