diff dmd/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 9167d492cbc2
children dc608dc33081
line wrap: on
line diff
--- a/dmd/mtype.h	Tue Mar 03 14:10:37 2009 +0100
+++ b/dmd/mtype.h	Tue Mar 03 15:08:26 2009 +0100
@@ -542,6 +542,11 @@
     int hasPointers();
 
     type *toCtype();
+
+    // LDC
+    // cache the hasUnalignedFields check
+    // 0 = not checked, 1 = aligned, 2 = unaligned
+    int unaligned;
 };
 
 struct TypeEnum : Type