[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.
http://llvm-reviews.chandlerc.com/D2183
Files:
include/llvm/Support/Debug.h
Index: include/llvm/Support/Debug.h
===================================================================
--- include/llvm/Support/Debug.h
+++ 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.
-------------- 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