diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-07-14 01:29:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-07-14 01:29:45 +0000 |
| commit | 4481b428db0f778ac919ddab7443a602e7cf25f4 (patch) | |
| tree | b8d33b5d835db074b872e69efe4e06c550acbfa8 /clang/CodeGen/CodeGenTypes.h | |
| parent | 9d3b0e0001411cc54aef84947285f663dce960d6 (diff) | |
| download | bcm5719-llvm-4481b428db0f778ac919ddab7443a602e7cf25f4.tar.gz bcm5719-llvm-4481b428db0f778ac919ddab7443a602e7cf25f4.zip | |
A significant refactoring of the type size stuff to also
compute type alignment. This info is needed for struct layout.
llvm-svn: 39850
Diffstat (limited to 'clang/CodeGen/CodeGenTypes.h')
| -rw-r--r-- | clang/CodeGen/CodeGenTypes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenTypes.h b/clang/CodeGen/CodeGenTypes.h index 3d8756415bf..1b49dce0c39 100644 --- a/clang/CodeGen/CodeGenTypes.h +++ b/clang/CodeGen/CodeGenTypes.h @@ -21,6 +21,7 @@ namespace llvm { } namespace clang { + class ASTContext; class TargetInfo; class QualType; class FunctionTypeProto; @@ -30,10 +31,11 @@ namespace CodeGen { /// CodeGenTypes - This class organizes the cross-module state that is used /// while lowering AST types to LLVM types. class CodeGenTypes { + ASTContext &Context; TargetInfo &Target; public: - CodeGenTypes(TargetInfo &target) : Target(target) {} + CodeGenTypes(ASTContext &Ctx); TargetInfo &getTarget() const { return Target; } |

