[PATCH] D27326: Make a DWARF generator so we can unit test DWARF APIs with gtest.

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 15:59:08 PST 2016


clayborg updated this revision to Diff 80340.
clayborg added a comment.

Fixed Adrian's issues. Big changes include:

- Added llvm::Expected support to the dwarfgen::Generator
- Handle errors if any arise
- Get host triple and get its 32 and 64 bits variants for 4 byte and 8 byte addresses and bail out if targets are not available without breaking the gtest.


https://reviews.llvm.org/D27326

Files:
  include/llvm/CodeGen/DIE.h
  include/llvm/CodeGen/DIEValue.def
  include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h
  include/llvm/MC/MCContext.h
  lib/CodeGen/AsmPrinter/DIE.cpp
  lib/CodeGen/AsmPrinter/DIEHash.cpp
  lib/CodeGen/AsmPrinter/DwarfFile.cpp
  lib/CodeGen/AsmPrinter/DwarfFile.h
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/DwarfGenerator.cpp
  lib/CodeGen/DwarfGenerator.h
  lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
  unittests/DebugInfo/DWARF/CMakeLists.txt
  unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27326.80340.patch
Type: text/x-patch
Size: 80883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161205/06f2ec0d/attachment.bin>


More information about the llvm-commits mailing list