[llvm-commits] [llvm] r92641 - /llvm/trunk/lib/Support/FormattedStream.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:28:43 PST 2010
Author: greened
Date: Mon Jan 4 19:28:43 2010
New Revision: 92641
URL: http://llvm.org/viewvc/llvm-project?rev=92641&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/Support/FormattedStream.cpp
Modified: llvm/trunk/lib/Support/FormattedStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/FormattedStream.cpp?rev=92641&r1=92640&r2=92641&view=diff
==============================================================================
--- llvm/trunk/lib/Support/FormattedStream.cpp (original)
+++ llvm/trunk/lib/Support/FormattedStream.cpp Mon Jan 4 19:28:43 2010
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Support/Debug.h"
#include "llvm/Support/FormattedStream.h"
using namespace llvm;
@@ -91,3 +92,10 @@
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;
+}
More information about the llvm-commits
mailing list