[Test][DebugInfo] Check for backend object emission support.
authorNigel Perks <nigelp@xmos.com>
Mon, 14 Sep 2020 17:17:11 +0000 (18:17 +0100)
committerNigel Perks <nigelp@xmos.com>
Thu, 18 Mar 2021 09:51:00 +0000 (09:51 +0000)
commit251fe986afd35bc257a8b043a49bddc98473d565
treeda0aed77ab9a8fbf0a73cc8c8b96976780bc49df
parent0331399dc9346f3c5acdf784ddb96567efc9d538
[Test][DebugInfo] Check for backend object emission support.

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.

Incorporate isConfigurationSupported functionality in isObjectEmissionSupported,
to avoid calling them both in the same tests.

Differential Revision: https://reviews.llvm.org/D98400
llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
llvm/unittests/DebugInfo/DWARF/DwarfUtils.cpp
llvm/unittests/DebugInfo/DWARF/DwarfUtils.h