Convert debug messages to use dbgs(). Generally this means

s/errs/dbgs/g except for certain special cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2009-12-23 19:27:59 +00:00
parent 44d98a76dc
commit 43c48ac801

View File

@ -19,6 +19,7 @@
#include "llvm/Type.h" #include "llvm/Type.h"
#include "llvm/Target/TargetData.h" #include "llvm/Target/TargetData.h"
#include "llvm/Assembly/Writer.h" #include "llvm/Assembly/Writer.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/InstIterator.h" #include "llvm/Support/InstIterator.h"
#include "llvm/Support/Format.h" #include "llvm/Support/Format.h"
@ -549,8 +550,8 @@ void AliasSetTracker::print(raw_ostream &OS) const {
OS << "\n"; OS << "\n";
} }
void AliasSet::dump() const { print(errs()); } void AliasSet::dump() const { print(dbgs()); }
void AliasSetTracker::dump() const { print(errs()); } void AliasSetTracker::dump() const { print(dbgs()); }
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// ASTCallbackVH Class Implementation // ASTCallbackVH Class Implementation
@ -591,7 +592,7 @@ namespace {
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
Tracker->add(&*I); Tracker->add(&*I);
Tracker->print(errs()); Tracker->print(dbgs());
delete Tracker; delete Tracker;
return false; return false;
} }