]> granicus.if.org Git - clang/commitdiff
prune #includes.
authorChris Lattner <sabre@nondot.org>
Mon, 24 Aug 2009 04:11:30 +0000 (04:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Aug 2009 04:11:30 +0000 (04:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79889 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/ASTConsumers.h
lib/Frontend/HTMLPrint.cpp
tools/clang-cc/clang-cc.cpp

index 87c85e067ff9f314ba68d90e9d3302d5bc0494e6..d3d43c25881535470b71dfff10e6fdadc3958f21 100644 (file)
 #ifndef DRIVER_ASTCONSUMERS_H
 #define DRIVER_ASTCONSUMERS_H
 
-#include "llvm/Support/raw_ostream.h"
 #include <string>
-#include <iosfwd>
 
 namespace llvm {
+  class raw_ostream;
   class Module;
   class LLVMContext;
   namespace sys { class Path; }
@@ -37,13 +36,13 @@ class LangOptions;
 // original C code.  The output is intended to be in a format such that
 // clang could re-parse the output back into the same AST, but the
 // implementation is still incomplete.
-ASTConsumer *CreateASTPrinter(llvm::raw_ostreamOS);
+ASTConsumer *CreateASTPrinter(llvm::raw_ostream *OS);
 
 // AST XML-printer: prints out the AST in a XML format 
 // The output is intended to be in a format such that
 // clang or any other tool could re-parse the output back into the same AST, 
 // but the implementation is still incomplete.
-ASTConsumer *CreateASTPrinterXML(llvm::raw_ostreamOS);
+ASTConsumer *CreateASTPrinterXML(llvm::raw_ostream *OS);
 
 // AST dumper: dumps the raw AST in human-readable form to stderr; this is
 // intended for debugging.
@@ -60,8 +59,8 @@ ASTConsumer *CreateDeclContextPrinter();
 
 // ObjC rewriter: attempts tp rewrite ObjC constructs into pure C code.
 // This is considered experimental, and only works with Apple's ObjC runtime.
-ASTConsumer *CreateObjCRewriter(const std::stringInFile,
-                                llvm::raw_ostreamOS,
+ASTConsumer *CreateObjCRewriter(const std::string &InFile,
+                                llvm::raw_ostream *OS,
                                 Diagnostic &Diags,
                                 const LangOptions &LOpts,
                                 bool SilenceRewriteMacroWarning);
index d5eb9fb5313d44875fc102ad4af0bcd85885b4aa..f434bcc0c7499b13de7005e43ca1f9411b4d8955 100644 (file)
@@ -21,7 +21,7 @@
 #include "clang/Basic/FileManager.h"
 #include "clang/AST/ASTContext.h"
 #include "llvm/Support/MemoryBuffer.h"
-
+#include "llvm/Support/raw_ostream.h"
 using namespace clang;
 
 //===----------------------------------------------------------------------===//
index a3cc921dd258483a5221d0f904a10046d89bbc0d..86fcb95c48c9914c33db918ca5e353698951a3ba 100644 (file)
@@ -64,6 +64,7 @@
 #include "llvm/Support/PluginLoader.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Timer.h"
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/System/Host.h"
 #include "llvm/System/Path.h"
 #include "llvm/System/Process.h"