diff options
author | Devang Patel <dpatel@apple.com> | 2007-10-31 00:59:29 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-10-31 00:59:29 +0000 |
commit | f767e218ee1a900475db90e8a44fff07f3ef3a09 (patch) | |
tree | 60d41c49e5a56ef4e231936442774f9eb99b9436 /CodeGen/CodeGenModule.h | |
parent | 8be9d0a9cdce8baa53844e54f6045c4600274269 (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/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index 4ca4f8c550..a044c0d02e 100644 --- a/CodeGen/CodeGenModule.h +++ b/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<llvm::Function *> 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; } |