diff options
author | David Greene <greened@obbligato.org> | 2010-01-05 01:28:43 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-01-05 01:28:43 +0000 |
commit | 8f1929b9eae512aedc0f3fedae3c0f24583171e1 (patch) | |
tree | 6f69b520f1a9dbc3291b78c0b9c60ede7b740a65 | |
parent | 2b965b05fcbce4a6c8bcc5570bb5a1deff2b0988 (diff) | |
download | external_llvm-8f1929b9eae512aedc0f3fedae3c0f24583171e1.zip external_llvm-8f1929b9eae512aedc0f3fedae3c0f24583171e1.tar.gz external_llvm-8f1929b9eae512aedc0f3fedae3c0f24583171e1.tar.bz2 |
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92641 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Support/FormattedStream.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Support/FormattedStream.cpp b/lib/Support/FormattedStream.cpp index 70f2cfa..9ab3666 100644 --- a/lib/Support/FormattedStream.cpp +++ b/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; +} |