summaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Debug.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-17 01:43:48 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-17 01:43:48 +0000
commita72ac422a22683b9ab872838be1a19445e3c1141 (patch)
tree0adef6f18209f5ec80aed9517c1992133380d1a5 /include/llvm/Support/Debug.h
parent33247d537ddce29e65bc324bf8d40a15d2d88c01 (diff)
downloadexternal_llvm-a72ac422a22683b9ab872838be1a19445e3c1141.zip
external_llvm-a72ac422a22683b9ab872838be1a19445e3c1141.tar.gz
external_llvm-a72ac422a22683b9ab872838be1a19445e3c1141.tar.bz2
#ifndef NDEBUG the "if (Stream) ..." stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Debug.h')
-rw-r--r--include/llvm/Support/Debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h
index 27e4221..cedb50d 100644
--- 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;
}
};