summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.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/Generic/machine-function-missing-function.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/Generic/machine-function-missing-function.mir')
-rw-r--r--llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir b/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
index 6800f872432..128a98720c2 100644
--- a/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
+++ b/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
@@ -1,4 +1,4 @@
-# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
# This test ensures that an error is reported when the mir file has LLVM IR and
# one of the machine functions has a name that doesn't match any function in
# the LLVM IR.
OpenPOWER on IntegriCloud