[PATCH] Include raw_ostream.h.

Rui Ueyama ruiu at google.com
Thu Nov 14 16:05:49 PST 2013

Hi echristo,

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.



Index: include/llvm/Support/Debug.h
--- include/llvm/Support/Debug.h
+++ include/llvm/Support/Debug.h
@@ -26,9 +26,9 @@
-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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2183.1.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131114/b834c6d2/attachment.bin>

More information about the llvm-commits mailing list