[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
Wed Dec 22 00:06:11 PST 2021


ikudrin added a comment.

In D116107#3205043 <https://reviews.llvm.org/D116107#3205043>, @dblaikie wrote:

> Is this accurate? Do all uses of DWARFUtils need the asm emission? I'd have thought the DWARFGenerator would mostly be used to go straight to machine code, without assembly?

The generator requires the assembler internally, see `dwarfgen::Generator::generate()`. `dwarfgen::Generator::init()` creates `MCAsmBackend` and fails if the asm backend is not available.

After D98400 <https://reviews.llvm.org/D98400>, there are only two places where `isConfigurationSupported()` is still called, but right after the check, `dwarfgen::Generator` is created.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116107/new/

https://reviews.llvm.org/D116107



More information about the llvm-commits mailing list