summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-05-13 15:37:46 +0000
committerRenato Golin <renato.golin@linaro.org>2016-05-13 15:37:46 +0000
commitd7a64a5b231b8094184ca2d0bc1874addccf703e (patch)
treea70481b53c77eb121399d337217722c39f2c5616 /llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
parent631e5f23f98eff23abd3b1b62e812053a7cd6a6a (diff)
downloadbcm5719-llvm-d7a64a5b231b8094184ca2d0bc1874addccf703e.tar.gz
bcm5719-llvm-d7a64a5b231b8094184ca2d0bc1874addccf703e.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. Patch by Diana Picus. llvm-svn: 269428
Diffstat (limited to 'llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir')
-rw-r--r--llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir b/llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
index e6a9ef8d4c8..d348cbeffed 100644
--- a/llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
+++ b/llvm/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
@@ -1,4 +1,4 @@
-# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
--- |
define i32 @test(i32 %a) {
OpenPOWER on IntegriCloud