summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FormattedStream.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:28:43 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:28:43 +0000
commit93a522bababab45d63f802f78fdcafec10311374 (patch)
tree59334d6beed15aa15c3b13a8138f5ffae670131d /llvm/lib/Support/FormattedStream.cpp
parentf92e6718bcf966cd459aebe04b38d61309203a5d (diff)
downloadbcm5719-llvm-93a522bababab45d63f802f78fdcafec10311374.tar.gz
bcm5719-llvm-93a522bababab45d63f802f78fdcafec10311374.zip
Change errs() to dbgs().
llvm-svn: 92641
Diffstat (limited to 'llvm/lib/Support/FormattedStream.cpp')
-rw-r--r--llvm/lib/Support/FormattedStream.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Support/FormattedStream.cpp b/llvm/lib/Support/FormattedStream.cpp
index 70f2cfa6ae8..9ab3666340e 100644
--- a/llvm/lib/Support/FormattedStream.cpp
+++ b/llvm/lib/Support/FormattedStream.cpp
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Support/Debug.h"
#include "llvm/Support/FormattedStream.h"
using namespace llvm;
@@ -91,3 +92,10 @@ formatted_raw_ostream &llvm::ferrs() {
static formatted_raw_ostream S(errs());
return S;
}
+
+/// fdbgs() - This returns a reference to a formatted_raw_ostream for
+/// the debug stream. Use it like: fdbgs() << "foo" << "bar";
+formatted_raw_ostream &llvm::fdbgs() {
+ static formatted_raw_ostream S(dbgs());
+ return S;
+}
OpenPOWER on IntegriCloud