[llvm-commits] [llvm] r92665 - /llvm/trunk/lib/VMCore/PrintModulePass.cpp

David Greene greened at obbligato.org
Mon Jan 4 17:30:18 PST 2010


Author: greened
Date: Mon Jan  4 19:30:18 2010
New Revision: 92665

URL: http://llvm.org/viewvc/llvm-project?rev=92665&view=rev
Log:
Change errs() to dbgs().

Modified:
    llvm/trunk/lib/VMCore/PrintModulePass.cpp

Modified: llvm/trunk/lib/VMCore/PrintModulePass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PrintModulePass.cpp?rev=92665&r1=92664&r2=92665&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/PrintModulePass.cpp (original)
+++ llvm/trunk/lib/VMCore/PrintModulePass.cpp Mon Jan  4 19:30:18 2010
@@ -16,6 +16,7 @@
 #include "llvm/Function.h"
 #include "llvm/Module.h"
 #include "llvm/Pass.h"
+#include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
@@ -26,7 +27,7 @@
     bool DeleteStream;      // Delete the ostream in our dtor?
   public:
     static char ID;
-    PrintModulePass() : ModulePass(&ID), Out(&errs()), 
+    PrintModulePass() : ModulePass(&ID), Out(&dbgs()), 
       DeleteStream(false) {}
     PrintModulePass(raw_ostream *o, bool DS)
       : ModulePass(&ID), Out(o), DeleteStream(DS) {}
@@ -51,7 +52,7 @@
     bool DeleteStream;      // Delete the ostream in our dtor?
   public:
     static char ID;
-    PrintFunctionPass() : FunctionPass(&ID), Banner(""), Out(&errs()), 
+    PrintFunctionPass() : FunctionPass(&ID), Banner(""), Out(&dbgs()), 
                           DeleteStream(false) {}
     PrintFunctionPass(const std::string &B, raw_ostream *o, bool DS)
       : FunctionPass(&ID), Banner(B), Out(o), DeleteStream(DS) {}





More information about the llvm-commits mailing list