diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-13 18:16:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-13 18:16:41 +0000 |
commit | a36c48676c0a48953c1a0885fa333be5851bbf94 (patch) | |
tree | 6a2f72bf7d650f3c0a114dd37d037fe4c1e45c26 /include/clang/CodeGen/ModuleBuilder.h | |
parent | 1d09ecca892185ba067e47ba879f424de59950ef (diff) |
Clean up types, removing some casts. Patch contributed by
Cedric Venet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/CodeGen/ModuleBuilder.h')
-rw-r--r-- | include/clang/CodeGen/ModuleBuilder.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h index 96b0f59b8e..245dff43f0 100644 --- a/include/clang/CodeGen/ModuleBuilder.h +++ b/include/clang/CodeGen/ModuleBuilder.h @@ -23,30 +23,28 @@ namespace clang { class ASTContext; class FunctionDecl; class FileVarDecl; - + namespace CodeGen { - /// BuilderTy - This is an opaque type used to reference ModuleBuilder - /// objects. - typedef void BuilderTy; + class CodeGenModule; /// Init - Create an ModuleBuilder with the specified ASTContext. - BuilderTy *Init(ASTContext &Context, llvm::Module &M, + CodeGenModule *Init(ASTContext &Context, llvm::Module &M, const llvm::TargetData &TD); /// CodeGenFunction - Convert the AST node for a FunctionDecl into LLVM. /// - void CodeGenFunction(BuilderTy *Builder, FunctionDecl *D); + void CodeGenFunction(CodeGenModule *Builder, FunctionDecl *D); /// CodeGenGlobalVar - Emit the specified global variable to LLVM. - void CodeGenGlobalVar(BuilderTy *Builder, FileVarDecl *D); + void CodeGenGlobalVar(CodeGenModule *Builder, FileVarDecl *D); /// PrintStats - Emit statistic information to stderr. /// - void PrintStats(BuilderTy *Builder); + void PrintStats(CodeGenModule *Builder); /// Terminate - Gracefully shut down the builder. /// - void Terminate(BuilderTy *Builder); + void Terminate(CodeGenModule *Builder); } // end namespace CodeGen } // end namespace clang |