ΒΆclang::CodeGenerator* CreateLLVMCodeGen(
clang::DiagnosticsEngine& Diags,
llvm::StringRef ModuleName,
IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS,
const clang::HeaderSearchOptions&
HeaderSearchOpts,
const clang::PreprocessorOptions&
PreprocessorOpts,
const clang::CodeGenOptions& CGO,
llvm::LLVMContext& C,
clang::CoverageSourceInfo* CoverageInfo =
nullptr)
clang::CodeGenerator* CreateLLVMCodeGen(
clang::DiagnosticsEngine& Diags,
llvm::StringRef ModuleName,
IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS,
const clang::HeaderSearchOptions&
HeaderSearchOpts,
const clang::PreprocessorOptions&
PreprocessorOpts,
const clang::CodeGenOptions& CGO,
llvm::LLVMContext& C,
clang::CoverageSourceInfo* CoverageInfo =
nullptr)
Description
CreateLLVMCodeGen - Create a CodeGenerator instance. It is the responsibility of the caller to call delete on the allocated CodeGenerator instance.
Declared at: clang/include/clang/CodeGen/ModuleBuilder.h:104
Parameters
- clang::DiagnosticsEngine& Diags
- llvm::StringRef ModuleName
- IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS
- const clang::HeaderSearchOptions& HeaderSearchOpts
- const clang::PreprocessorOptions& PreprocessorOpts
- const clang::CodeGenOptions& CGO
- llvm::LLVMContext& C
- clang::CoverageSourceInfo* CoverageInfo = nullptr