Added hasUnalignedFields helper to check if a type has unaligned fields - as per request from fvbommel. Result is cached in TypeStruct.

This commit is contained in:
Tomas Lindquist Olsen
2009-03-03 15:08:26 +01:00
parent 8cad8d6c7a
commit c3a53c0128
6 changed files with 49 additions and 0 deletions

View File

@@ -628,6 +628,11 @@ struct TypeStruct : Type
#endif
type *toCtype();
// LDC
// cache the hasUnalignedFields check
// 0 = not checked, 1 = aligned, 2 = unaligned
int unaligned;
};
struct TypeEnum : Type