diff options
author | Craig Topper <craig.topper@intel.com> | 2019-09-03 02:51:14 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-09-03 02:51:14 +0000 |
commit | 9c74c7740443121e366cd424eaa31acefacaae33 (patch) | |
tree | 216eb9b9d274b92dbe9257636e99fb5dd27f1eda /llvm/lib/CodeGen | |
parent | dcecc7ea468d62dda89bd7666001a1412dae6345 (diff) | |
download | bcm5719-llvm-9c74c7740443121e366cd424eaa31acefacaae33.tar.gz bcm5719-llvm-9c74c7740443121e366cd424eaa31acefacaae33.zip |
[LegalizeDAG] Pass DAG to two calls to SDNode::dump in debug prints so that they will print target specific nodes correctly.
The dump methods can only print target node names correctly if
they can get access to the TLI object.
llvm-svn: 370694
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 285f3fd667d..1236b7492a0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2050,12 +2050,12 @@ SDValue SelectionDAGLegalize::ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, std::pair<SDValue, SDValue> CallInfo = TLI.LowerCallTo(CLI); if (!CallInfo.second.getNode()) { - LLVM_DEBUG(dbgs() << "Created tailcall: "; DAG.getRoot().dump()); + LLVM_DEBUG(dbgs() << "Created tailcall: "; DAG.getRoot().dump(&DAG)); // It's a tailcall, return the chain (which is the DAG root). return DAG.getRoot(); } - LLVM_DEBUG(dbgs() << "Created libcall: "; CallInfo.first.dump()); + LLVM_DEBUG(dbgs() << "Created libcall: "; CallInfo.first.dump(&DAG)); return CallInfo.first; } |