Commit Graph

5 Commits

Author SHA1 Message Date
John McCall 0cfc51eb09 Fix the layout of bitfields in ms_struct unions: their
alignment is ignored, and they always allocate a complete
storage unit.

Also, change the dumping of AST record layouts: use the more
readable C++-style dumping even in C, include bitfield offset
information in the dump, and don't print sizeof/alignof
information for fields of record type, since we don't do so
for bases or other kinds of field.

rdar://22275433

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245514 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-19 22:42:36 +00:00
John McCall 4e88652a34 Extensively comment bitfield layout, rearrange some
code for legibility, and fix a bug with bitfields in packed
ms_structs.

rdar://15926990

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200379 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-29 07:53:44 +00:00
Fariborz Jahanian 225c5dda5a Clean up consequences of cut and paste.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131190 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-11 17:07:02 +00:00
Fariborz Jahanian 6ec50ad4b1 Implenment #pack pragma and ms_struct attribute layout.
Concludes // radar://8823265.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131188 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-11 16:58:31 +00:00
Fariborz Jahanian ed63e03e35 Support pack pragma and ms_struct attributes. // rdar://8823265
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131142 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-10 19:00:50 +00:00