Include <iostream> here, because most people using DEBUG() want to use std::cerr...
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 21 Jul 2004 20:50:22 +0000 (20:50 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 21 Jul 2004 20:50:22 +0000 (20:50 +0000)
This means that users of this file do not also need to include <iostream>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15088 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Debug.h
include/llvm/Support/Debug.h

index 66a208811ae0af117d433dc0a027c948fc0ad061..f0a1b3dc5bdf6febda97ca421c13e075a0e9b2ea 100644 (file)
@@ -26,6 +26,9 @@
 #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
index 66a208811ae0af117d433dc0a027c948fc0ad061..f0a1b3dc5bdf6febda97ca421c13e075a0e9b2ea 100644 (file)
@@ -26,6 +26,9 @@
 #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