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, which added checks for most cases. This patch extends the approach to the remaining cases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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?
Comment Actions
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, there are only two places where isConfigurationSupported() is still called, but right after the check, dwarfgen::Generator is created.