diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-13 16:05:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-13 16:05:32 +0000 |
commit | dfc1470d2d69541c010131018272ed6d19bd35d6 (patch) | |
tree | 55536778adb6cc3b843470f07d85ea7de7f6322b /llvm/test/CodeGen/Generic/no-target.ll | |
parent | a5877505d7f4bd0157a3cbbe12907157c3383c7d (diff) | |
download | bcm5719-llvm-dfc1470d2d69541c010131018272ed6d19bd35d6.tar.gz bcm5719-llvm-dfc1470d2d69541c010131018272ed6d19bd35d6.zip |
Fix pr18235.
The cpp backend is not a reasonable fallback for a missing target. It is a
very special backend, so it is reasonable to use it only if explicitly
requested.
While at it, simplify the interface a bit.
llvm-svn: 197241
Diffstat (limited to 'llvm/test/CodeGen/Generic/no-target.ll')
-rw-r--r-- | llvm/test/CodeGen/Generic/no-target.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/no-target.ll b/llvm/test/CodeGen/Generic/no-target.ll new file mode 100644 index 00000000000..4a4724fdf2d --- /dev/null +++ b/llvm/test/CodeGen/Generic/no-target.ll @@ -0,0 +1,3 @@ +; RUN: not llc -mtriple le32-unknown-nacl %s -o - 2>&1 | FileCheck %s + +; CHECK: error: unable to get target for 'le32-unknown-nacl' |