OSDN Git Service

[SystemZ] Implement SystemZOperand::print()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 26 Oct 2018 00:36:00 +0000 (00:36 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 26 Oct 2018 00:36:00 +0000 (00:36 +0000)
commit23962bb2765b60e0aee02123dcd6faeaab0e0c5c
treed8ba3ebf2e2f8caabd7100cf876d101a14cdbc34
parentf3aabb0947b171f4b0958d39d76adf713ea2ca0a
[SystemZ] Implement SystemZOperand::print()

SystemZAsmParser can now handle -debug by printing the operands neatly to the
output stream. Before this patch this lead to an llvm_unreachable().

It seems that now '-mllvm -debug' does not cause any crashes anywhere (at
least not on SPEC).

Review: Ulrich Weigand
https://reviews.llvm.org/D53328

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345349 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
test/MC/SystemZ/asm-match.s [new file with mode: 0644]