[PATCH] D20371: [llc] Remove exit-on-error flag from MIR tests (PR27770)
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 03:37:52 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL272254: [llc] Remove exit-on-error flag from MIR tests (PR27770) (authored by rovka).
Changed prior to commit:
http://reviews.llvm.org/D20371?vs=57629&id=60150#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20371
Files:
llvm/trunk/test/CodeGen/MIR/Generic/invalid-jump-table-kind.mir
llvm/trunk/test/CodeGen/MIR/Generic/llvm-ir-error-reported.mir
llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-name.mir
llvm/trunk/test/CodeGen/MIR/Generic/machine-function-redefinition-error.mir
llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir
llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir
llvm/trunk/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
llvm/trunk/tools/llc/llc.cpp
Index: llvm/trunk/tools/llc/llc.cpp
===================================================================
--- llvm/trunk/tools/llc/llc.cpp
+++ llvm/trunk/tools/llc/llc.cpp
@@ -260,10 +260,8 @@
if (!SkipModule) {
if (StringRef(InputFilename).endswith_lower(".mir")) {
MIR = createMIRParserFromFile(InputFilename, Err, Context);
- if (MIR) {
+ if (MIR)
M = MIR->parseLLVMModule();
- assert(M && "parseLLVMModule should exit on failure");
- }
} else
M = parseIRFile(InputFilename, Err, Context);
if (!M) {
Index: llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
+++ llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
@@ -1,4 +1,4 @@
-# RUN: not llc -start-after branch-folder -stop-after branch-folder -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -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.
Index: llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-name.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-name.mir
+++ llvm/trunk/test/CodeGen/MIR/Generic/machine-function-missing-name.mir
@@ -1,4 +1,4 @@
-# RUN: not llc -start-after branch-folder -stop-after branch-folder -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
# This test ensures that an error is reported when a machine function doesn't
# have a name attribute.
Index: llvm/trunk/test/CodeGen/MIR/Generic/invalid-jump-table-kind.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/Generic/invalid-jump-table-kind.mir
+++ llvm/trunk/test/CodeGen/MIR/Generic/invalid-jump-table-kind.mir
@@ -1,4 +1,4 @@
-# RUN: not llc -start-after branch-folder -stop-after branch-folder -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
Index: llvm/trunk/test/CodeGen/MIR/Generic/llvm-ir-error-reported.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/Generic/llvm-ir-error-reported.mir
+++ llvm/trunk/test/CodeGen/MIR/Generic/llvm-ir-error-reported.mir
@@ -1,4 +1,4 @@
-# RUN: not llc -start-after branch-folder -stop-after branch-folder -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
# This test ensures an error is reported if the embedded LLVM IR contains an
# error.
Index: llvm/trunk/test/CodeGen/MIR/Generic/machine-function-redefinition-error.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/Generic/machine-function-redefinition-error.mir
+++ llvm/trunk/test/CodeGen/MIR/Generic/machine-function-redefinition-error.mir
@@ -1,4 +1,4 @@
-# RUN: not llc -start-after branch-folder -stop-after branch-folder -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
# This test ensures that the machine function errors are reported correctly.
---
Index: llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir
+++ llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir
@@ -1,4 +1,4 @@
-# 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
+# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
Index: llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir
+++ llvm/trunk/test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir
@@ -1,4 +1,4 @@
-# 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
+# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
Index: llvm/trunk/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
===================================================================
--- llvm/trunk/test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir
+++ llvm/trunk/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 -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
+# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
define i32 @test(i32 %a) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20371.60150.patch
Type: text/x-patch
Size: 5485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160609/a6f80c3f/attachment.bin>
More information about the llvm-commits
mailing list