X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FDebug.h;h=52d0d3fb4055619c440400fb50b2cdfdb0e1a5e7;hb=0eac0164c259fb4a9d824361029f175e3eeede5c;hp=9f0f1611d78db781ba7061df9816b9e7c4e441d3;hpb=52883e7a9a637c0d6dea091917090a8ac63e7736;p=oota-llvm.git diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h index 9f0f1611d78..52d0d3fb405 100644 --- a/include/llvm/Support/Debug.h +++ b/include/llvm/Support/Debug.h @@ -2,12 +2,12 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // -// This file implements a handle way of adding debugging information to your +// This file implements a handy way of adding debugging information to your // code, without it being enabled all of the time, and without having to add // command line options to enable it. // @@ -64,13 +64,13 @@ bool isCurrentDebugType(const char *Type); /// getErrorOutputStream - Returns the error output stream (std::cerr). This /// places the std::c* I/O streams into one .cpp file and relieves the whole /// program from having to have hundreds of static c'tor/d'tors for them. -/// -llvm_ostream getErrorOutputStream(const char *DebugType); +/// +OStream &getErrorOutputStream(const char *DebugType); #ifdef NDEBUG -#define DOUT llvm_ostream() +#define DOUT llvm::OStream(0) #else -#define DOUT getErrorOutputStream(DEBUG_TYPE) +#define DOUT llvm::getErrorOutputStream(DEBUG_TYPE) #endif } // End llvm namespace