2007-10-07 14:04:32 +08:00
|
|
|
//===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===//
|
2007-06-23 08:39:57 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 03:59:25 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-23 08:39:57 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2007-10-07 14:04:32 +08:00
|
|
|
// AST Consumers.
|
2007-06-23 08:39:57 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2007-10-07 14:04:32 +08:00
|
|
|
#ifndef DRIVER_ASTCONSUMERS_H
|
|
|
|
#define DRIVER_ASTCONSUMERS_H
|
2007-06-23 08:39:57 +08:00
|
|
|
|
2008-09-13 13:16:45 +08:00
|
|
|
#include "llvm/Support/raw_ostream.h"
|
2008-02-17 07:17:23 +08:00
|
|
|
#include <string>
|
2007-11-29 05:32:21 +08:00
|
|
|
#include <iosfwd>
|
2007-11-28 05:46:50 +08:00
|
|
|
|
2008-02-06 09:42:25 +08:00
|
|
|
namespace llvm {
|
|
|
|
class Module;
|
|
|
|
namespace sys { class Path; }
|
|
|
|
}
|
2007-06-23 08:39:57 +08:00
|
|
|
namespace clang {
|
|
|
|
|
2007-09-16 06:56:56 +08:00
|
|
|
class ASTConsumer;
|
2007-09-16 07:21:08 +08:00
|
|
|
class Diagnostic;
|
2007-12-05 08:26:13 +08:00
|
|
|
class FileManager;
|
2007-11-28 13:34:05 +08:00
|
|
|
struct LangOptions;
|
2008-04-16 14:11:58 +08:00
|
|
|
class Preprocessor;
|
2008-04-18 06:31:54 +08:00
|
|
|
class PreprocessorFactory;
|
|
|
|
|
2008-09-13 13:16:45 +08:00
|
|
|
ASTConsumer *CreateASTPrinter(llvm::raw_ostream* OS = NULL);
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-16 07:02:28 +08:00
|
|
|
ASTConsumer *CreateASTDumper();
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-20 05:29:43 +08:00
|
|
|
ASTConsumer *CreateASTViewer();
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2008-01-18 09:15:54 +08:00
|
|
|
ASTConsumer *CreateCodeRewriterTest(const std::string& InFile,
|
2008-03-22 08:08:40 +08:00
|
|
|
const std::string& OutFile,
|
2008-03-11 04:43:59 +08:00
|
|
|
Diagnostic &Diags,
|
|
|
|
const LangOptions &LOpts);
|
2008-08-06 02:50:11 +08:00
|
|
|
|
|
|
|
ASTConsumer *CreateLLVMCodeGenWriter(bool EmitBC, Diagnostic &Diags,
|
|
|
|
const LangOptions &Features,
|
|
|
|
const std::string& InFile,
|
|
|
|
const std::string& OutFile,
|
|
|
|
bool GenerateDebugInfo);
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2008-04-16 14:11:58 +08:00
|
|
|
ASTConsumer* CreateHTMLPrinter(const std::string &OutFile, Diagnostic &D,
|
2008-04-18 06:31:54 +08:00
|
|
|
Preprocessor *PP, PreprocessorFactory* PPF);
|
2008-03-19 05:19:49 +08:00
|
|
|
|
2007-12-20 06:24:34 +08:00
|
|
|
ASTConsumer *CreateSerializationTest(Diagnostic &Diags,
|
2008-06-04 23:55:15 +08:00
|
|
|
FileManager& FMgr);
|
2007-12-13 08:37:31 +08:00
|
|
|
|
2007-12-20 07:49:37 +08:00
|
|
|
ASTConsumer *CreateASTSerializer(const std::string& InFile,
|
|
|
|
const std::string& EmitDir,
|
2008-06-04 23:55:15 +08:00
|
|
|
Diagnostic &Diags);
|
2007-09-07 07:00:42 +08:00
|
|
|
|
2008-09-17 08:13:27 +08:00
|
|
|
ASTConsumer *CreateBlockRewriter(const std::string& InFile,
|
2008-09-18 22:10:13 +08:00
|
|
|
const std::string& OutFile,
|
2008-09-17 08:13:27 +08:00
|
|
|
Diagnostic &Diags,
|
|
|
|
const LangOptions &LangOpts);
|
2007-06-23 08:39:57 +08:00
|
|
|
} // end clang namespace
|
|
|
|
|
2008-07-02 08:03:09 +08:00
|
|
|
#include "AnalysisConsumer.h"
|
|
|
|
|
2007-06-23 08:39:57 +08:00
|
|
|
#endif
|