diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-17 01:43:48 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-17 01:43:48 +0000 |
commit | ca6f6a43e0d39f5bf9f0178552abb951a189034f (patch) | |
tree | a2140ee7157b292e990ee0de1496fa8d1b4728f8 /llvm | |
parent | 84dd67e08a382ab74c4d9b39f871383ea97ac835 (diff) | |
download | bcm5719-llvm-ca6f6a43e0d39f5bf9f0178552abb951a189034f.tar.gz bcm5719-llvm-ca6f6a43e0d39f5bf9f0178552abb951a189034f.zip |
#ifndef NDEBUG the "if (Stream) ..." stuff.
llvm-svn: 31803
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/Debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Debug.h b/llvm/include/llvm/Support/Debug.h index 27e4221c9e7..cedb50dcd29 100644 --- a/llvm/include/llvm/Support/Debug.h +++ b/llvm/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; } }; |