summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:29:26 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:29:26 +0000
commitc7f9b122077e0bd9bbbff13daf5a488a25b7581e (patch)
tree48904bbdb5bca3d21e32e19c59837e1a2e456374 /llvm/lib
parent0688a242a550544842dd5976aa9087684d325265 (diff)
downloadbcm5719-llvm-c7f9b122077e0bd9bbbff13daf5a488a25b7581e.tar.gz
bcm5719-llvm-c7f9b122077e0bd9bbbff13daf5a488a25b7581e.zip
Change errs() to dbgs().
llvm-svn: 92652
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index d3c9d7794f1..c048202e304 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -30,6 +30,7 @@
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/CFG.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/Dwarf.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
@@ -567,7 +568,7 @@ static SlotTracker *createSlotTracker(const Value *V) {
}
#if 0
-#define ST_DEBUG(X) errs() << X
+#define ST_DEBUG(X) dbgs() << X
#else
#define ST_DEBUG(X)
#endif
@@ -2085,17 +2086,17 @@ void Value::printCustom(raw_ostream &OS) const {
}
// Value::dump - allow easy printing of Values from the debugger.
-void Value::dump() const { print(errs()); errs() << '\n'; }
+void Value::dump() const { print(dbgs()); dbgs() << '\n'; }
// Type::dump - allow easy printing of Types from the debugger.
// This one uses type names from the given context module
void Type::dump(const Module *Context) const {
- WriteTypeSymbolic(errs(), this, Context);
- errs() << '\n';
+ WriteTypeSymbolic(dbgs(), this, Context);
+ dbgs() << '\n';
}
// Type::dump - allow easy printing of Types from the debugger.
void Type::dump() const { dump(0); }
// Module::dump() - Allow printing of Modules from the debugger.
-void Module::dump() const { print(errs(), 0); }
+void Module::dump() const { print(dbgs(), 0); }
OpenPOWER on IntegriCloud