diff options
Diffstat (limited to 'include/clang/CodeGen/ModuleBuilder.h')
-rw-r--r-- | include/clang/CodeGen/ModuleBuilder.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h deleted file mode 100644 index 52497d9..0000000 --- a/include/clang/CodeGen/ModuleBuilder.h +++ /dev/null @@ -1,54 +0,0 @@ -//===--- CodeGen/ModuleBuilder.h - Build LLVM from ASTs ---------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines the ModuleBuilder interface. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_CLANG_CODEGEN_MODULEBUILDER_H -#define LLVM_CLANG_CODEGEN_MODULEBUILDER_H - -#include "clang/AST/ASTConsumer.h" -#include <string> - -namespace llvm { - class LLVMContext; - class Module; -} - -namespace clang { - class DiagnosticsEngine; - class CoverageSourceInfo; - class LangOptions; - class HeaderSearchOptions; - class PreprocessorOptions; - class CodeGenOptions; - class Decl; - - class CodeGenerator : public ASTConsumer { - virtual void anchor(); - public: - virtual llvm::Module* GetModule() = 0; - virtual llvm::Module* ReleaseModule() = 0; - virtual const Decl *GetDeclForMangledName(llvm::StringRef MangledName) = 0; - }; - - /// CreateLLVMCodeGen - Create a CodeGenerator instance. - /// It is the responsibility of the caller to call delete on - /// the allocated CodeGenerator instance. - CodeGenerator *CreateLLVMCodeGen(DiagnosticsEngine &Diags, - const std::string &ModuleName, - const HeaderSearchOptions &HeaderSearchOpts, - const PreprocessorOptions &PreprocessorOpts, - const CodeGenOptions &CGO, - llvm::LLVMContext& C, - CoverageSourceInfo *CoverageInfo = nullptr); -} - -#endif |