aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenTypes.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-14 01:29:45 +0000
committerChris Lattner <sabre@nondot.org>2007-07-14 01:29:45 +0000
commitd2d2a11a91d7ddf468bfb70f66362d24806ed601 (patch)
tree1920f1ccb6fc00b05bbd9d884dd821601d906626 /CodeGen/CodeGenTypes.h
parent8f32f7189b12f67aa4a19bc7c3855b599980eca0 (diff)
A significant refactoring of the type size stuff to also
compute type alignment. This info is needed for struct layout. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenTypes.h')
-rw-r--r--CodeGen/CodeGenTypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/CodeGen/CodeGenTypes.h b/CodeGen/CodeGenTypes.h
index 3d8756415b..1b49dce0c3 100644
--- a/CodeGen/CodeGenTypes.h
+++ b/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; }