[PATCH] D116107: [unittest][DebugInfo/DWARF] Do not create dwarfgen::Generator if MCAsmBackend is missing

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 21 07:04:26 PST 2021


ikudrin created this revision.
ikudrin added reviewers: dblaikie, jhenderson, nigelp-xmos.
ikudrin added a project: LLVM.
ikudrin requested review of this revision.

`dwarfgen::Generator` cannot be created if there is no asm backend for a target. For example, if the default target triple is `nvptx-nvidia-cuda`, some tests fail even after D98400 <https://reviews.llvm.org/D98400>, which added checks for most cases. This patch extends the approach to the remaining cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116107

Files:
  llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
  llvm/unittests/DebugInfo/DWARF/DWARFDieManualExtractTest.cpp
  llvm/unittests/DebugInfo/DWARF/DwarfUtils.cpp
  llvm/unittests/DebugInfo/DWARF/DwarfUtils.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116107.395669.patch
Type: text/x-patch
Size: 5464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211221/ebe742e0/attachment.bin>


More information about the llvm-commits mailing list