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:
parent
dc9438e8d9
commit
ba889e5a71
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user