Skip to content

Commit 977d598

Browse files
committed
[MC] Reorder MCSymbol members to reduce padding.
sizeof(MCSymbol) goes from 72 to 64 bytes on x86_64. llvm-svn: 238655
1 parent f19ef9f commit 977d598

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/include/llvm/MC/MCSymbol.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ class MCSymbol {
7272
/// symbol has no size this field will be NULL.
7373
const MCExpr *SymbolSize = nullptr;
7474

75-
/// The alignment of the symbol, if it is 'common', or -1.
76-
//
77-
// FIXME: Pack this in with other fields?
78-
unsigned CommonAlign = -1U;
79-
8075
union {
8176
/// The offset to apply to the fragment address to form this symbol's value.
8277
uint64_t Offset;
@@ -85,6 +80,11 @@ class MCSymbol {
8580
uint64_t CommonSize;
8681
};
8782

83+
/// The alignment of the symbol, if it is 'common', or -1.
84+
//
85+
// FIXME: Pack this in with other fields?
86+
unsigned CommonAlign = -1U;
87+
8888
/// The Flags field is used by object file implementations to store
8989
/// additional per symbol information which is not easily classified.
9090
mutable uint32_t Flags = 0;

0 commit comments

Comments
 (0)