aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineDebugify.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@nondot.org>2020-12-28 12:01:08 -0800
committerChris Lattner <clattner@nondot.org>2020-12-28 12:37:01 -0800
commit87c032f7b449cee97751d86739e249738029bf63 (patch)
tree46c6028beb6b73dcf3a7954c6c602f4f17ae09d9 /llvm/lib/CodeGen/MachineDebugify.cpp
parentef93f7a11c347534ac768ec8bbbed64cd20c41d2 (diff)
downloadllvm-87c032f7b449cee97751d86739e249738029bf63.zip
llvm-87c032f7b449cee97751d86739e249738029bf63.tar.gz
llvm-87c032f7b449cee97751d86739e249738029bf63.tar.bz2
[IR] Make Value::getType() work better with invalid IR.
The asmprinter would crash when dumping IR objects that had their operands dropped. With this change, we now get this output, which makes op->dump() style debugging more useful. %5 = "firrtl.eq"(<<NULL>>, <<NULL>>) : (<<NULL TYPE>>, <<NULL TYPE>>) -> !firrtl.uint<1> Previously the asmprinter would crash getting the types of the null operands. Differential Revision: https://reviews.llvm.org/D93869
Diffstat (limited to 'llvm/lib/CodeGen/MachineDebugify.cpp')
0 files changed, 0 insertions, 0 deletions