Mercurial > projects > ldc
comparison ir/irtypestruct.h @ 1270:dd135ff697fa
Fixed class default initializers and type generation. Bug #260 is fixed.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Mon, 27 Apr 2009 03:40:40 +0200 |
parents | ec1d9dc1d32a |
children |
comparison
equal
deleted
inserted
replaced
1269:b8a51aa44d4c | 1270:dd135ff697fa |
---|---|
31 | 31 |
32 protected: | 32 protected: |
33 /// AggregateDeclaration this type represents. | 33 /// AggregateDeclaration this type represents. |
34 AggregateDeclaration* aggr; | 34 AggregateDeclaration* aggr; |
35 | 35 |
36 /// Sorted list of all default fields. | |
37 /// A default field is a field that contributes to the default initializer | |
38 /// and the default type, and thus it has it's own unique GEP index into | |
39 /// the aggregate. | |
40 /// For classes, field of any super classes are not included. | |
36 std::vector<VarDeclaration*> default_fields; | 41 std::vector<VarDeclaration*> default_fields; |
37 }; | 42 }; |
38 | 43 |
39 ////////////////////////////////////////////////////////////////////////////// | 44 ////////////////////////////////////////////////////////////////////////////// |
40 | 45 |