summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Support/Debug.h3
-rw-r--r--include/llvm/Support/Debug.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/include/Support/Debug.h b/include/Support/Debug.h
index 66a208811a..f0a1b3dc5b 100644
--- a/include/Support/Debug.h
+++ b/include/Support/Debug.h
@@ -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
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h
index 66a208811a..f0a1b3dc5b 100644
--- a/include/llvm/Support/Debug.h
+++ b/include/llvm/Support/Debug.h
@@ -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