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

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

lib/Analysis/InstCount.cpp

index a4b041f02a3abc09904ed6b152b6ea62fedef6c2..4af6acb0f9790d14d909f405e16aefe4efdeb314 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/Analysis/Passes.h"
 #include "llvm/Pass.h"
 #include "llvm/Function.h"
+#include "llvm/Support/Debug.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/InstVisitor.h"
 #include "llvm/Support/raw_ostream.h"
@@ -45,7 +46,7 @@ namespace {
 #include "llvm/Instruction.def"
 
     void visitInstruction(Instruction &I) {
-      errs() << "Instruction Count does not know about " << I;
+      dbgs() << "Instruction Count does not know about " << I;
       llvm_unreachable(0);
     }
   public: