[PATCH] D28828: [DWARF] [ObjectYAML] Adding APIs for unittesting

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 14:30:44 PST 2017


beanz created this revision.
Herald added subscribers: aprantl, jgosnell, fhahn, mgorny.

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.


https://reviews.llvm.org/D28828

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28828.84747.patch
Type: text/x-patch
Size: 9337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170117/8ff0b96c/attachment.bin>


More information about the llvm-commits mailing list