summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.h
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
commit46c70030521d5967ee276995729bf334b3ef50fb (patch)
tree10fd73ffcb00305d55ef4938494a7f2986c2132b /clang/CodeGen/CodeGenModule.h
parentb066c1f216e3bb77b0e383ebae0e75d2ee063249 (diff)
downloadbcm5719-llvm-46c70030521d5967ee276995729bf334b3ef50fb.tar.gz
bcm5719-llvm-46c70030521d5967ee276995729bf334b3ef50fb.zip
Make target info available to clang code generator.
This is far from complete but this helps clang codegen module make progress. llvm-svn: 43536
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
-rw-r--r--clang/CodeGen/CodeGenModule.h4
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; }
OpenPOWER on IntegriCloud