summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/CodeGen/CodeGenModuleContainer.h
blob: 3c5456fc18d3d8a5b90c28d69db7584f3803cb4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//===--- CodeGen/ModuleContainerGenerator.h - Emit .pcm files ---*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_CODEGEN_MODULE_CONTAINER_H
#define LLVM_CLANG_CODEGEN_MODULE_CONTAINER_H

#include "ModuleBuilder.h"
#include <string>

namespace llvm {
class raw_ostream;
}

namespace clang {

class PCHGenerator;
class TargetOptions;

/// \brief Create a CodeGenerator instance.
/// It is the responsibility of the caller to call delete on
/// the allocated CodeGenerator instance.
CodeGenerator *CreateModuleContainerGenerator(
    DiagnosticsEngine &Diags, const std::string &ModuleName,
    const CodeGenOptions &CGO, const TargetOptions &TO, const LangOptions &LO,
    llvm::raw_ostream *OS, PCHGenerator *PCHGen);
}

#endif
OpenPOWER on IntegriCloud