Mercurial > projects > ldc
comparison ir/irstruct.h @ 737:041c1596d217
Removed warnings on ignored aligns. Only do aligment on packed structs, align(1) struct Packed { ... }
Changed the way struct/class fields are added, first small part of cleaning up these...
Make struct/class/union fields aware of any anonymous struct/union they might be part of, not yet really useful, but part of getting better union support.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 28 Oct 2008 15:41:09 +0100 |
parents | eef8ac26c66c |
children | 340acf1535d0 |
comparison
equal
deleted
inserted
replaced
736:e4e50f4b58cd | 737:041c1596d217 |
---|---|
51 | 51 |
52 public: | 52 public: |
53 IrStruct(Type*); | 53 IrStruct(Type*); |
54 virtual ~IrStruct(); | 54 virtual ~IrStruct(); |
55 | 55 |
56 void addField(VarDeclaration* v); | |
57 | |
56 Type* type; | 58 Type* type; |
57 llvm::PATypeHolder recty; | 59 llvm::PATypeHolder recty; |
58 OffsetMap offsets; | 60 OffsetMap offsets; |
59 VarDeclVector defaultFields; | 61 VarDeclVector defaultFields; |
60 | 62 |