diff dmd2/mtype.h @ 1029:4d366a75d95f

Added hasUnalignedFields helper to check if a type has unaligned fields - as per request from fvbommel. Result is cached in TypeStruct.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 03 Mar 2009 15:08:26 +0100
parents 964af20461a9
children 638d16625da2
line wrap: on
line diff
--- a/dmd2/mtype.h	Tue Mar 03 14:10:37 2009 +0100
+++ b/dmd2/mtype.h	Tue Mar 03 15:08:26 2009 +0100
@@ -628,6 +628,11 @@
 #endif
 
     type *toCtype();
+
+    // LDC
+    // cache the hasUnalignedFields check
+    // 0 = not checked, 1 = aligned, 2 = unaligned
+    int unaligned;
 };
 
 struct TypeEnum : Type