[llvm] r194759 - Include raw_ostream.h.

Rui Ueyama ruiu at google.com
Thu Nov 14 17:25:35 PST 2013


Author: ruiu
Date: Thu Nov 14 19:25:34 2013
New Revision: 194759

URL: http://llvm.org/viewvc/llvm-project?rev=194759&view=rev
Log:
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

Modified:
    llvm/trunk/include/llvm/Support/Debug.h

Modified: llvm/trunk/include/llvm/Support/Debug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Debug.h?rev=194759&r1=194758&r2=194759&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Debug.h (original)
+++ llvm/trunk/include/llvm/Support/Debug.h Thu Nov 14 19:25:34 2013
@@ -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.





More information about the llvm-commits mailing list