<p dir="ltr">Thanks! </p>
<div class="gmail_quote">On May 30, 2015 9:58 AM, "Benjamin Kramer" <<a href="mailto:benny.kra@googlemail.com">benny.kra@googlemail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: d0k<br>
Date: Sat May 30 08:52:30 2015<br>
New Revision: 238655<br>
<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D238655-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=R0VbUUdoVCyTleqfIUO_XIQzGYwMrtxuqOJ7XwYvAh8&s=Bl31RV576o8bFoMymamvmAa8hu6AUGucbZotW5Ns-LU&e=" target="_blank">http://llvm.org/viewvc/llvm-project?rev=238655&view=rev</a><br>
Log:<br>
[MC] Reorder MCSymbol members to reduce padding.<br>
<br>
sizeof(MCSymbol) goes from 72 to 64 bytes on x86_64.<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/MC/MCSymbol.h<br>
<br>
Modified: llvm/trunk/include/llvm/MC/MCSymbol.h<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_include_llvm_MC_MCSymbol.h-3Frev-3D238655-26r1-3D238654-26r2-3D238655-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=R0VbUUdoVCyTleqfIUO_XIQzGYwMrtxuqOJ7XwYvAh8&s=rm2di2SKvIDUi0MOSBk8s82erKlBgQMaf-uV_ALevDg&e=" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSymbol.h?rev=238655&r1=238654&r2=238655&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/MC/MCSymbol.h (original)<br>
+++ llvm/trunk/include/llvm/MC/MCSymbol.h Sat May 30 08:52:30 2015<br>
@@ -72,11 +72,6 @@ class MCSymbol {<br>
   /// symbol has no size this field will be NULL.<br>
   const MCExpr *SymbolSize = nullptr;<br>
<br>
-  /// The alignment of the symbol, if it is 'common', or -1.<br>
-  //<br>
-  // FIXME: Pack this in with other fields?<br>
-  unsigned CommonAlign = -1U;<br>
-<br>
   union {<br>
     /// The offset to apply to the fragment address to form this symbol's value.<br>
     uint64_t Offset;<br>
@@ -85,6 +80,11 @@ class MCSymbol {<br>
     uint64_t CommonSize;<br>
   };<br>
<br>
+  /// The alignment of the symbol, if it is 'common', or -1.<br>
+  //<br>
+  // FIXME: Pack this in with other fields?<br>
+  unsigned CommonAlign = -1U;<br>
+<br>
   /// The Flags field is used by object file implementations to store<br>
   /// additional per symbol information which is not easily classified.<br>
   mutable uint32_t Flags = 0;<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>