diff options
| author | David Greene <greened@obbligato.org> | 2010-01-05 01:29:14 +0000 |
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2010-01-05 01:29:14 +0000 |
| commit | 774990365886ac06ba8be618a82d7878fcc933de (patch) | |
| tree | 2fb8d3cf53fc3f5293febd44f7ce02f738764883 | |
| parent | 0041181684d15180525b8d3934b6afd5752607eb (diff) | |
| download | bcm5719-llvm-774990365886ac06ba8be618a82d7878fcc933de.tar.gz bcm5719-llvm-774990365886ac06ba8be618a82d7878fcc933de.zip | |
Change errs() to dbgs().
llvm-svn: 92649
| -rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 30528bfebde..66e2a670252 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -56,6 +56,7 @@ #include "llvm/CodeGen/ValueTypes.h" #include "llvm/Support/CallSite.h" #include "llvm/Support/CFG.h" +#include "llvm/Support/Debug.h" #include "llvm/Support/InstVisitor.h" #include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" @@ -85,9 +86,9 @@ namespace { // Anonymous namespace for class for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) { if (I->empty() || !I->back().isTerminator()) { - errs() << "Basic Block does not have terminator!\n"; - WriteAsOperand(errs(), I, true); - errs() << "\n"; + dbgs() << "Basic Block does not have terminator!\n"; + WriteAsOperand(dbgs(), I, true); + dbgs() << "\n"; Broken = true; } } @@ -262,12 +263,12 @@ namespace { default: llvm_unreachable("Unknown action"); case AbortProcessAction: MessagesStr << "compilation aborted!\n"; - errs() << MessagesStr.str(); + dbgs() << MessagesStr.str(); // Client should choose different reaction if abort is not desired abort(); case PrintMessageAction: MessagesStr << "verification continues.\n"; - errs() << MessagesStr.str(); + dbgs() << MessagesStr.str(); return false; case ReturnStatusAction: MessagesStr << "compilation terminated.\n"; |

