Add optional SelectionDAG* parameter to SValue::dump and SDValue::dumpr
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 20 Dec 2017 15:15:04 +0000 (15:15 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 20 Dec 2017 15:15:04 +0000 (15:15 +0000)
commit3257e44c663d02ebdd989571155e88416cbbb408
tree7f42e88e5f51d37d4152e4f715dcff3960e364fb
parentdeca635e45e5e3e8d57a0724655f9597621276e7
Add optional SelectionDAG* parameter to SValue::dump and SDValue::dumpr

These functions simply call their counterparts in the associated SDNode,
which do take an optional SelectionDAG. This change makes the legalization
debug trace a little easier to read, since target-specific nodes will
now have their names shown instead of "Unknown node #123".

llvm-svn: 321180
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp