Mercurial > projects > ldc
view ir/irtypestruct.h @ 1240:f295e51d2dd0
Fixed static struct initializers.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 17 Apr 2009 00:36:21 +0200 |
parents | 79758fd2f48a |
children | ec1d9dc1d32a |
line wrap: on
line source
#ifndef __LDC_IR_IRTYPESTRUCT_H__ #define __LDC_IR_IRTYPESTRUCT_H__ #include "ir/irtype.h" ////////////////////////////////////////////////////////////////////////////// struct AggregateDeclaration; struct StructDeclaration; struct TypeStruct; ////////////////////////////////////////////////////////////////////////////// class IrTypeAggr : public IrType { public: /// IrTypeAggr(AggregateDeclaration* ad); /// IrTypeAggr* isAggr() { return this; } protected: /// AggregateDeclaration this type represents. AggregateDeclaration* aggr; }; ////////////////////////////////////////////////////////////////////////////// class IrTypeStruct : public IrTypeAggr { public: /// IrTypeStruct(StructDeclaration* sd); /// IrTypeStruct* isStruct() { return this; } /// const llvm::Type* buildType(); protected: /// StructDeclaration this type represents. StructDeclaration* sd; /// DMD TypeStruct of this type. TypeStruct* ts; }; ////////////////////////////////////////////////////////////////////////////// #endif