Make target info available to clang code generator.

This is far from complete but this helps clang codegen module
make progress.

llvm-svn: 43536
This commit is contained in:
Devang Patel
2007-10-31 00:59:29 +00:00
parent b066c1f216
commit 46c7003052
9 changed files with 45 additions and 12 deletions

View File

@@ -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) {