diff options
author | Devang Patel <dpatel@apple.com> | 2007-10-31 20:01:01 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-10-31 20:01:01 +0000 |
commit | 75ef2f0b459d54015f0551319f4473d000be52aa (patch) | |
tree | 99a4261c8d4f1ed52df733c6b1e8065754aaa7e8 /clang/CodeGen/CodeGenModule.h | |
parent | c55cd9a38accb101064e2ac80aa8513ec3319b32 (diff) | |
download | bcm5719-llvm-75ef2f0b459d54015f0551319f4473d000be52aa.tar.gz bcm5719-llvm-75ef2f0b459d54015f0551319f4473d000be52aa.zip |
Take 2.
Make target info available to clang code generator. This is far from complete but this helps clang codegen module make progress.
At the moment target triplet and target description strings are hard coded in clang::TargetInfo
llvm-svn: 43572
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/CodeGen/CodeGenModule.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<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; } |