 |
|
 |
|
| Files: |
1 |
|
Branches Taken: |
16.7% |
1 / 6 |
| Generated: |
2010-02-10 01:31 |
|
Branches Executed: |
33.3% |
2 / 6 |
| |
|
Line Coverage: |
100.0% |
1 / 1 |
| |
 |
|
 |
1 : //===--- CodeGen/ModuleBuilder.h - Build LLVM from ASTs ---------*- C++ -*-===//
2 : //
3 : // The LLVM Compiler Infrastructure
4 : //
5 : // This file is distributed under the University of Illinois Open Source
6 : // License. See LICENSE.TXT for details.
7 : //
8 : //===----------------------------------------------------------------------===//
9 : //
10 : // This file defines the ModuleBuilder interface.
11 : //
12 : //===----------------------------------------------------------------------===//
13 :
14 : #ifndef LLVM_CLANG_CODEGEN_MODULEBUILDER_H
15 : #define LLVM_CLANG_CODEGEN_MODULEBUILDER_H
16 :
17 : #include "clang/AST/ASTConsumer.h"
18 : #include <string>
19 :
20 : namespace llvm {
21 : class LLVMContext;
22 : class Module;
23 : }
24 :
25 : namespace clang {
26 : class Diagnostic;
27 : class LangOptions;
28 : class CodeGenOptions;
29 :
0: branch 2 not taken
599: branch 3 taken
0: branch 6 not taken
0: branch 7 not taken
0: branch 10 not taken
0: branch 11 not taken
30 1224: class CodeGenerator : public ASTConsumer {
31 : public:
32 : virtual llvm::Module* GetModule() = 0;
33 : virtual llvm::Module* ReleaseModule() = 0;
34 : };
35 :
36 : CodeGenerator *CreateLLVMCodeGen(Diagnostic &Diags,
37 : const std::string &ModuleName,
38 : const CodeGenOptions &CGO,
39 : llvm::LLVMContext& C);
40 : }
41 :
42 : #endif
Generated: 2010-02-10 01:31 by zcov