mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7df0c07dbc
commit
5024246167
@ -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