This is an archive of the discontinued LLVM Phabricator instance.

[Test][DebugInfo] Check for backend object emission support.
ClosedPublic

Authored by nigelp-xmos on Mar 11 2021, 2:01 AM.

Details

Summary

The XCore backend does not support object emission. Several tests fail for this
reason when XCore is the default target. See staging buildbot builder:
clang-xcore-ubuntu-20-x64.

So check for backend object emission before running the tests requiring it.

Diff Detail

Event Timeline

nigelp-xmos requested review of this revision.Mar 11 2021, 2:01 AM
nigelp-xmos created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2021, 2:01 AM

Run clang-format

labath added a subscriber: jhenderson.

@jhenderson is probably the best person for this, but my suggestion would be to avoid the need to query both isConfigurationSupported and supportsObjectEmission everywhere. Having the latter subsume the former should make things simpler and still be understandable, I think.

@labath Thanks for the quick response. That looks like a good idea. I will try that.

  • Incorporate isConfigurationSupported in isObjectEmissionSupported

Looks good to me, probably best to get an ok from someone else as well.

jhenderson accepted this revision.Mar 18 2021, 1:42 AM

Looks reasonable to me, with one possible nit.

llvm/unittests/DebugInfo/DWARF/DwarfUtils.cpp
50

Is this still in use anywhere? If not, you can delete it (and the declaration in the header).

This revision is now accepted and ready to land.Mar 18 2021, 1:42 AM
nigelp-xmos added inline comments.Mar 18 2021, 2:33 AM
llvm/unittests/DebugInfo/DWARF/DwarfUtils.cpp
50

Yes, isConfigurationSupported is used in two places that don't need to check for object emission. Thank you for the review!

nigelp-xmos marked an inline comment as done.Mar 18 2021, 2:34 AM