]> granicus.if.org Git - llvm/commitdiff
[LegalizeDAG] Pass DAG to two calls to SDNode::dump in debug prints so that they...
authorCraig Topper <craig.topper@intel.com>
Tue, 3 Sep 2019 02:51:14 +0000 (02:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 3 Sep 2019 02:51:14 +0000 (02:51 +0000)
The dump methods can only print target node names correctly if
they can get access to the TLI object.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370694 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 285f3fd667d612c558b31e6408c74803d7a9ce55..1236b7492a0e7df253908a98780845f68fe1bbfd 100644 (file)
@@ -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;
 }