aboutsummaryrefslogtreecommitdiff
path: root/include/clang/CodeGen/ModuleBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/CodeGen/ModuleBuilder.h')
-rw-r--r--include/clang/CodeGen/ModuleBuilder.h41
1 files changed, 5 insertions, 36 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h
index ab08c4abc6..8abb377f80 100644
--- a/include/clang/CodeGen/ModuleBuilder.h
+++ b/include/clang/CodeGen/ModuleBuilder.h
@@ -16,46 +16,15 @@
namespace llvm {
class Module;
- class TargetData;
}
namespace clang {
- class ASTContext;
- class FunctionDecl;
- class LinkageSpecDecl;
- class FileVarDecl;
- class TypeDecl;
- struct LangOptions;
class Diagnostic;
-
-namespace CodeGen {
- class CodeGenModule;
-
- /// Init - Create an ModuleBuilder with the specified ASTContext.
- CodeGenModule *Init(ASTContext &Context, const LangOptions &Features,
- llvm::Module &M, const llvm::TargetData &TD,
- Diagnostic &Diags);
-
- /// CodeGenFunction - Convert the AST node for a FunctionDecl into LLVM.
- ///
- void CodeGenFunction(CodeGenModule *Builder, FunctionDecl *D);
-
- void CodeGenLinkageSpec(CodeGenModule *Builder, LinkageSpecDecl *LS);
-
- /// CodeGenGlobalVar - Emit the specified global variable to LLVM.
- void CodeGenGlobalVar(CodeGenModule *Builder, FileVarDecl *D);
-
- /// CodeGenTypeDecl - Compile a type.
- void CodeGenTypeDecl(CodeGenModule *Builder, TypeDecl *D);
-
- /// PrintStats - Emit statistic information to stderr.
- ///
- void PrintStats(CodeGenModule *Builder);
+ struct LangOptions;
+ class ASTConsumer;
- /// Terminate - Gracefully shut down the builder.
- ///
- void Terminate(CodeGenModule *Builder);
-} // end namespace CodeGen
-} // end namespace clang
+ ASTConsumer *CreateLLVMCodeGen(Diagnostic &Diags, const LangOptions &Features,
+ llvm::Module *&DestModule);
+}
#endif