summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-28 01:07:47 +0000
committerChris Lattner <sabre@nondot.org>2007-05-28 01:07:47 +0000
commitbed314465a0fbac5f98548c27f386f3074ddb9f8 (patch)
tree7c88648799c2d80ab4bb50fb448333b7f9923471 /clang/CodeGen/ModuleBuilder.cpp
parent7a50aa98f0147ce1fcd64aea6a2eb2bb7d7da241 (diff)
downloadbcm5719-llvm-bed314465a0fbac5f98548c27f386f3074ddb9f8.tar.gz
bcm5719-llvm-bed314465a0fbac5f98548c27f386f3074ddb9f8.zip
Reorganize codegen files.
llvm-svn: 39504
Diffstat (limited to 'clang/CodeGen/ModuleBuilder.cpp')
-rw-r--r--clang/CodeGen/ModuleBuilder.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/CodeGen/ModuleBuilder.cpp b/clang/CodeGen/ModuleBuilder.cpp
index 309a35762a2..2de81721826 100644
--- a/clang/CodeGen/ModuleBuilder.cpp
+++ b/clang/CodeGen/ModuleBuilder.cpp
@@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===//
#include "clang/CodeGen/ModuleBuilder.h"
-#include "Builder.h"
+#include "CodeGenModule.h"
using namespace llvm;
using namespace clang;
@@ -20,21 +20,21 @@ using namespace clang;
/// Init - Create an ModuleBuilder with the specified ASTContext.
llvm::clang::CodeGen::BuilderTy *
llvm::clang::CodeGen::Init(ASTContext &Context, Module &M) {
- return new Builder(Context, M);
+ return new CodeGenModule(Context, M);
}
void llvm::clang::CodeGen::Terminate(BuilderTy *B) {
- delete static_cast<Builder*>(B);
+ delete static_cast<CodeGenModule*>(B);
}
/// CodeGenFunction - Convert the AST node for a FunctionDecl into LLVM.
///
void llvm::clang::CodeGen::CodeGenFunction(BuilderTy *B, FunctionDecl *D) {
- static_cast<Builder*>(B)->CodeGenFunction(D);
+ static_cast<CodeGenModule*>(B)->EmitFunction(D);
}
/// PrintStats - Emit statistic information to stderr.
///
void llvm::clang::CodeGen::PrintStats(BuilderTy *B) {
- static_cast<Builder*>(B)->PrintStats();
+ static_cast<CodeGenModule*>(B)->PrintStats();
}
OpenPOWER on IntegriCloud