Be a bit more efficient when processing the active and inactive
[oota-llvm.git] / include / Support / Debug.h
index 0a4c8a778478d8abf6f94874d27bb0fb686c49db..f0a1b3dc5bdf6febda97ca421c13e075a0e9b2ea 100644 (file)
@@ -1,4 +1,11 @@
 //===- Debug.h - An easy way to add debug output to your code ---*- C++ -*-===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 // This file implements a handle way of adding debugging information to your
 // code, without it being enabled all of the time, and without having to add
 #ifndef SUPPORT_DEBUG_H
 #define SUPPORT_DEBUG_H
 
+// Unsurprisingly, most users of this macro use std::cerr too.
+#include <iostream>
+
+namespace llvm {
+
 // DebugFlag - This boolean is set to true if the '-debug' command line option
 // is specified.  This should probably not be referenced directly, instead, use
 // the DEBUG macro below.
@@ -50,4 +62,6 @@ bool isCurrentDebugType(const char *Type);
   do { if (DebugFlag && isCurrentDebugType(DEBUG_TYPE)) { X; } } while (0)
 #endif
 
+} // End llvm namespace
+
 #endif