OSDN Git Service

[MIRTesting] Abort when failing to parse a function.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 21 Jul 2016 22:25:57 +0000 (22:25 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 21 Jul 2016 22:25:57 +0000 (22:25 +0000)
commita2132baaffe7cb3679e582df1430ec309fa12598
treeaebb0f33efc46c5b1ffa8a658bd3a465e0f761a5
parent39008ac365ea2de66217b436e300c6479c9e4cfe
[MIRTesting] Abort when failing to parse a function.

When we failed to parse a function in the mir parser, we should abort
the whole compilation instead of continuing in a weird state. Indeed,
this was creating strange machine function passes failures that were
hard to understand, until we notice that the function actually did not
get parsed correctly!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276348 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineFunctionAnalysis.cpp
test/CodeGen/MIR/AArch64/generic-virtual-registers-error.mir
test/CodeGen/MIR/AArch64/generic-virtual-registers-with-regbank-error.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/unexpected-size-non-generic-register-phys.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/unexpected-size-non-generic-register.mir