Convert debug messages to use dbgs(). Generally this means
authorDavid Greene <greened@obbligato.org>
Wed, 23 Dec 2009 20:03:58 +0000 (20:03 +0000)
committerDavid Greene <greened@obbligato.org>
Wed, 23 Dec 2009 20:03:58 +0000 (20:03 +0000)
s/errs/dbgs/g except for certain special cases.

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

lib/Analysis/IPA/CallGraph.cpp

index 9cd8bb8c2df1b9d38be8ddce72ad6d3d83a3eb4e..a826177d6bdeb3d5cf38a1bf52b39a1320f01c82 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Instructions.h"
 #include "llvm/IntrinsicInst.h"
 #include "llvm/Support/CallSite.h"
+#include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
@@ -181,7 +182,7 @@ void CallGraph::print(raw_ostream &OS, Module*) const {
     I->second->print(OS);
 }
 void CallGraph::dump() const {
-  print(errs(), 0);
+  print(dbgs(), 0);
 }
 
 //===----------------------------------------------------------------------===//
@@ -232,7 +233,7 @@ void CallGraphNode::print(raw_ostream &OS) const {
   OS << "\n";
 }
 
-void CallGraphNode::dump() const { print(errs()); }
+void CallGraphNode::dump() const { print(dbgs()); }
 
 /// removeCallEdgeFor - This method removes the edge in the node for the
 /// specified call site.  Note that this method takes linear time, so it