This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
53 lines
1.6 KiB
C++
53 lines
1.6 KiB
C++
//===--- 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 CodeGenOptions;
|
|
class TargetOptions;
|
|
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 CodeGenOptions &CGO,
|
|
const TargetOptions &TO,
|
|
llvm::LLVMContext& C,
|
|
CoverageSourceInfo *CoverageInfo = nullptr);
|
|
}
|
|
|
|
#endif
|