Mercurial > projects > ldc
diff gen/llvmhelpers.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 | 39519a1ff603 |
children | 7ce8355fbcc6 |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Tue Mar 03 14:10:37 2009 +0100 +++ b/gen/llvmhelpers.h Tue Mar 03 15:08:26 2009 +0100 @@ -114,6 +114,9 @@ // returns true if the symbol needs template linkage, or just external bool needsTemplateLinkage(Dsymbol* s); +// returns true if there is any unaligned type inside the aggregate +bool hasUnalignedFields(Type* t); + //////////////////////////////////////////// // gen/tocall.cpp stuff below ////////////////////////////////////////////