[cfe-dev] Converting RecordLayout fields to CharUnits
Ken Dyck
kd at kendyck.com
Sat Jan 29 07:48:47 PST 2011
The RecordLayout class has several fields that are stored in bit units
but appear (at least on X86 Linux) to always hold values that are
multiples of char size. Specifically:
- Size
- DataSize
- Alignment
- CXXRecordLayoutInfo::NonVirtualSize
- CXXRecordLayoutInfo::NonVirtualAlign
Am I right in assuming that these values are always multiples of the
char size? If so, is there any reason why they shouldn't be converted
to CharUnits?
-Ken
More information about the cfe-dev
mailing list