[Clang][NewPM] Don't bail out if the target machine is empty
authorPetr Hosek <phosek@chromium.org>
Mon, 6 May 2019 23:24:17 +0000 (23:24 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 6 May 2019 23:24:17 +0000 (23:24 +0000)
commit5f2e10e9c3251f623d9962984a34ae40bb84b1ff
treeb16b4fcd9c9017544aeeb16e857f1bb13e22019e
parent2ea088173df0d44db3202b6b2904901c0a6dabe5
[Clang][NewPM] Don't bail out if the target machine is empty

This matches the behavior of the old pass manager. There are some
targets that don't have target machine at all (e.g. le32, spir) which
whose tests would never run with new pass manager. Similarly, we would
need to disable tests for targets that are disabled.

Differential Revision: https://reviews.llvm.org/D58374

llvm-svn: 360100
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/spir-half-type.cpp
clang/test/Driver/le32-unknown-nacl.cpp