1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Make DOUT an lvalue in release mode so that developers may use DOUT in

their code in release mode.  This helps to debug release-mode problems.

llvm-svn: 76182
This commit is contained in:
David Greene 2009-07-17 15:55:53 +00:00
parent dc9438e8d9
commit ba889e5a71

View File

@ -68,7 +68,8 @@ bool isCurrentDebugType(const char *Type);
OStream &getErrorOutputStream(const char *DebugType);
#ifdef NDEBUG
#define DOUT llvm::OStream(0)
static llvm::OStream NullStream(0);
#define DOUT llvm::NullStream
#else
#define DOUT llvm::getErrorOutputStream(DEBUG_TYPE)
#endif