aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-10-31 00:59:29 +0000
committerDevang Patel <dpatel@apple.com>2007-10-31 00:59:29 +0000
commitf767e218ee1a900475db90e8a44fff07f3ef3a09 (patch)
tree60d41c49e5a56ef4e231936442774f9eb99b9436 /CodeGen/ModuleBuilder.cpp
parent8be9d0a9cdce8baa53844e54f6045c4600274269 (diff)
Make target info available to clang code generator.
This is far from complete but this helps clang codegen module make progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/ModuleBuilder.cpp')
-rw-r--r--CodeGen/ModuleBuilder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/CodeGen/ModuleBuilder.cpp b/CodeGen/ModuleBuilder.cpp
index 4a5a470563..a7586b64c2 100644
--- a/CodeGen/ModuleBuilder.cpp
+++ b/CodeGen/ModuleBuilder.cpp
@@ -18,8 +18,9 @@ using namespace clang;
/// Init - Create an ModuleBuilder with the specified ASTContext.
clang::CodeGen::BuilderTy *
-clang::CodeGen::Init(ASTContext &Context, llvm::Module &M) {
- return new CodeGenModule(Context, M);
+clang::CodeGen::Init(ASTContext &Context, llvm::Module &M,
+ const llvm::TargetData &TD) {
+ return new CodeGenModule(Context, M, TD);
}
void clang::CodeGen::Terminate(BuilderTy *B) {