summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/BPF/many_args2.ll
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-05-16 14:28:02 +0000
committerRenato Golin <renato.golin@linaro.org>2016-05-16 14:28:02 +0000
commit4b9c0d4dcf4adcb869e41886df45e9e157566412 (patch)
treeb19851a91be825bbf17737cff7be0f54a4270aaa /llvm/test/CodeGen/BPF/many_args2.ll
parenta250dc9f111f1af6a413adf6a3749df857d668bc (diff)
downloadbcm5719-llvm-4b9c0d4dcf4adcb869e41886df45e9e157566412.tar.gz
bcm5719-llvm-4b9c0d4dcf4adcb869e41886df45e9e157566412.zip
[llc] New diagnostic handler
Without a diagnostic handler installed, llc's behaviour is to exit on the first error that it encounters. This is very different from the behaviour of clang and other front ends, which try to gather as many errors as possible before exiting. This commit adds a diagnostic handler to llc, allowing it to find and report more than one error. The old behaviour is preserved under a flag (-exit-on-error). Some of the tests fail with the new diagnostic handler, so they have to use the new flag in order to run under the previous behaviour. Some of these are known bugs, others need further investigation. Ideally, we should fix the tests and remove the flag at some point in the future. Reapplied after fixing the LLDB build that was broken due to the new DiagnosticSeverity in LLVMContext.h, and fixed an UB in the new change. Patch by Diana Picus. llvm-svn: 269655
Diffstat (limited to 'llvm/test/CodeGen/BPF/many_args2.ll')
-rw-r--r--llvm/test/CodeGen/BPF/many_args2.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/BPF/many_args2.ll b/llvm/test/CodeGen/BPF/many_args2.ll
index a69886c2b20..08a1179bc5e 100644
--- a/llvm/test/CodeGen/BPF/many_args2.ll
+++ b/llvm/test/CodeGen/BPF/many_args2.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=bpf < %s 2> %t1
+; RUN: not llc -march=bpf -exit-on-error < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: too many args
OpenPOWER on IntegriCloud