<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Hello,<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">I'm using DIBuilder to create debugging information, I'm not clear about two things:<br><br>[1] Could you help explain the meaning and the difference between"alignment" and "offset" of a type ?<br><div class="gmail_default" style="font-family:georgia,serif;font-size:large"><br>e.g class Actor{<br> int age;<br> const char* name;<br> }<br><br></div>Besides, I
found the denotation of createMemberType and createStructType both have
"Member Alignment" and "Member Size" fields, are they the same thing ? If they are, then for the "Actor", which member is it referring to ?<br><br>[2] In createMemberType, the last arg “Ty” is parent type, does it mean "Actor" in the example ?<br><br>thanks</div><br>-- <br><div class="gmail_signature">Best regards<br><br><br>Hui Zhang<br></div>
</div>