]> granicus.if.org Git - clang/commit
[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)
commit741e05796da92b46d4f7bcbee00702ff37df6489
treecdff4a5d1a715d4ad622fd8f190128b54bebe440
parent14bb26600bd457b26ad98b82179a33069f380271
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360100 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/spir-half-type.cpp
test/Driver/le32-unknown-nacl.cpp