summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-22 10:16:15 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-22 10:16:15 +0000
commit9cf99a61d68ae217ea3b463a02e3b50c620d8e54 (patch)
treebc23d87b5a72f1f4108244c6655bc85065a27931
parentcf1667022fec6f94a3178d92cb8a719e971d63bc (diff)
downloadbcm5719-llvm-9cf99a61d68ae217ea3b463a02e3b50c620d8e54.tar.gz
bcm5719-llvm-9cf99a61d68ae217ea3b463a02e3b50c620d8e54.zip
Add a missing forward declaration and namespace qualifier to this
header. This showed up in client code that has a different include ordering after Chris's shuffle of raw_ostream. All of the Clang code ends up with a header included before this one that provides the needed type and using declaration. llvm-svn: 135765
-rw-r--r--clang/include/clang/AST/PrettyPrinter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang/AST/PrettyPrinter.h b/clang/include/clang/AST/PrettyPrinter.h
index a34c0d95564..fc8ac36b3b9 100644
--- a/clang/include/clang/AST/PrettyPrinter.h
+++ b/clang/include/clang/AST/PrettyPrinter.h
@@ -16,6 +16,10 @@
#include "clang/Basic/LangOptions.h"
+namespace llvm {
+ class raw_ostream;
+}
+
namespace clang {
class Stmt;
@@ -25,7 +29,7 @@ class LangOptions;
class PrinterHelper {
public:
virtual ~PrinterHelper();
- virtual bool handledStmt(Stmt* E, raw_ostream& OS) = 0;
+ virtual bool handledStmt(Stmt* E, llvm::raw_ostream& OS) = 0;
};
/// \brief Describes how types, statements, expressions, and
OpenPOWER on IntegriCloud