summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/no-target.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-13 16:05:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-13 16:05:32 +0000
commitdfc1470d2d69541c010131018272ed6d19bd35d6 (patch)
tree55536778adb6cc3b843470f07d85ea7de7f6322b /llvm/test/CodeGen/Generic/no-target.ll
parenta5877505d7f4bd0157a3cbbe12907157c3383c7d (diff)
downloadbcm5719-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.ll3
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'
OpenPOWER on IntegriCloud