forked from OSchip/llvm-project
parent
f92e6718bc
commit
93a522baba
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue