projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df0c07
)
Make DOUT an lvalue in release mode so that developers may use DOUT in
author
David Greene
<greened@obbligato.org>
Fri, 17 Jul 2009 15:55:53 +0000
(15:55 +0000)
committer
David Greene
<greened@obbligato.org>
Fri, 17 Jul 2009 15:55:53 +0000
(15:55 +0000)
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
include/llvm/Support/Debug.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/Debug.h
b/include/llvm/Support/Debug.h
index 52d0d3fb4055619c440400fb50b2cdfdb0e1a5e7..0ebed202e4b2fdec6a7abf77d74eab0bf2db56cd 100644
(file)
--- a/
include/llvm/Support/Debug.h
+++ b/
include/llvm/Support/Debug.h
@@
-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