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:
33247d5
)
#ifndef NDEBUG the "if (Stream) ..." stuff.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 17 Nov 2006 01:43:48 +0000
(
01:43
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 17 Nov 2006 01:43:48 +0000
(
01:43
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31803
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 27e4221c9e7f3583f1231f250c434aa9061d5a84..cedb50dcd29b5de8b0143e7fc66bdc789d5b00a5 100644
(file)
--- a/
include/llvm/Support/Debug.h
+++ b/
include/llvm/Support/Debug.h
@@
-72,7
+72,9
@@
public:
template <typename Ty>
llvm_ostream& operator << (const Ty& Thing) {
+#ifndef NDEBUG
if (Stream) *Stream << Thing;
+#endif
return *this;
}
};