From 46c70030521d5967ee276995729bf334b3ef50fb Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 31 Oct 2007 00:59:29 +0000 Subject: Make target info available to clang code generator. This is far from complete but this helps clang codegen module make progress. llvm-svn: 43536 --- clang/CodeGen/CodeGenModule.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/CodeGen/CodeGenModule.h') diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index 4ca4f8c5506..a044c0d02ee 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/CodeGen/CodeGenModule.h @@ -23,6 +23,7 @@ namespace llvm { class Constant; class Function; class GlobalVariable; + class TargetData; } namespace clang { @@ -39,6 +40,7 @@ namespace CodeGen { class CodeGenModule { ASTContext &Context; llvm::Module &TheModule; + const llvm::TargetData &TheTargetData; CodeGenTypes Types; llvm::Function *MemCpyFn; @@ -49,7 +51,7 @@ class CodeGenModule { std::vector BuiltinFunctions; public: - CodeGenModule(ASTContext &C, llvm::Module &M); + CodeGenModule(ASTContext &C, llvm::Module &M, const llvm::TargetData &TD); ASTContext &getContext() const { return Context; } llvm::Module &getModule() const { return TheModule; } -- cgit v1.2.3