[llvm-commits] CVS: llvm/include/llvm/Support/Debug.h

Bill Wendling isanbard at gmail.com
Thu Nov 16 17:44:03 PST 2006



Changes in directory llvm/include/llvm/Support:

Debug.h updated: 1.9 -> 1.10
---
Log message:

#ifndef NDEBUG the "if (Stream) ..." stuff.


---
Diffs of the changes:  (+2 -0)

 Debug.h |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/include/llvm/Support/Debug.h
diff -u llvm/include/llvm/Support/Debug.h:1.9 llvm/include/llvm/Support/Debug.h:1.10
--- llvm/include/llvm/Support/Debug.h:1.9	Thu Nov 16 19:13:12 2006
+++ llvm/include/llvm/Support/Debug.h	Thu Nov 16 19:43:48 2006
@@ -72,7 +72,9 @@
 
   template <typename Ty>
   llvm_ostream& operator << (const Ty& Thing) {
+#ifndef NDEBUG
     if (Stream) *Stream << Thing;
+#endif
     return *this;
   }
 };






More information about the llvm-commits mailing list