diff options
author | Rui Ueyama <ruiu@google.com> | 2013-11-15 01:25:34 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-11-15 01:25:34 +0000 |
commit | 2b7fef0ad4bfaaf9fd41cda5abda35aab701b598 (patch) | |
tree | ce958ff6f88ec625b2607a9bbdf2f9a219d85363 | |
parent | 19a99df130f5747da950faf4ca5170d71f05594c (diff) | |
download | external_llvm-2b7fef0ad4bfaaf9fd41cda5abda35aab701b598.zip external_llvm-2b7fef0ad4bfaaf9fd41cda5abda35aab701b598.tar.gz external_llvm-2b7fef0ad4bfaaf9fd41cda5abda35aab701b598.tar.bz2 |
Include raw_ostream.h.
Including only Debug.h did not cause a compilation error, but you couldn't
do anything (like writing something with <<) to raw_ostreams returned by
llvm::dbgs() or llvm::errs() without including raw_ostream.h. So including
it from Debug.h should make sense.
Differential Revision: http://llvm-reviews.chandlerc.com/D2183
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194759 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/Debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h index 896fe84..2702408 100644 --- a/include/llvm/Support/Debug.h +++ b/include/llvm/Support/Debug.h @@ -26,9 +26,9 @@ #ifndef LLVM_SUPPORT_DEBUG_H #define LLVM_SUPPORT_DEBUG_H -namespace llvm { +#include "llvm/Support/raw_ostream.h" -class raw_ostream; +namespace llvm { /// DEBUG_TYPE macro - Files can specify a DEBUG_TYPE as a string, which causes /// all of their DEBUG statements to be activatable with -debug-only=thatstring. |