[PATCH] D12568: SelectionDAGDumper: Avoid unnecessary newlines

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 10:59:02 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL248012: SelectionDAGDumper: Avoid unnecessary newlines (authored by matze).

Changed prior to commit:
  http://reviews.llvm.org/D12568?vs=33832&id=35111#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D12568

Files:
  llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp

Index: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -587,16 +587,15 @@
     if (Op.getNode()->hasOneUse())
       DumpNodes(Op.getNode(), indent+2, G);
     else
-      dbgs() << "\n" << std::string(indent+2, ' ')
-             << PrintNodeId(*Op.getNode()) << ": <multiple use>";
+      dbgs() << std::string(indent+2, ' ')
+             << PrintNodeId(*Op.getNode()) << ": <multiple use>\n";
 
-  dbgs() << '\n';
   dbgs().indent(indent);
   N->dump(G);
 }
 
 void SelectionDAG::dump() const {
-  dbgs() << "SelectionDAG has " << AllNodes.size() << " nodes:";
+  dbgs() << "SelectionDAG has " << AllNodes.size() << " nodes:\n";
 
   for (allnodes_const_iterator I = allnodes_begin(), E = allnodes_end();
        I != E; ++I) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12568.35111.patch
Type: text/x-patch
Size: 940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150918/ae750875/attachment.bin>


More information about the llvm-commits mailing list