diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-05-30 13:52:30 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-05-30 13:52:30 +0000 |
| commit | 977d598d78746f5293da4a1201538cf59e6ceee4 (patch) | |
| tree | 009a68dbc71f0177e607090331f83f858c1566be /llvm | |
| parent | f19ef9f7410eec2f9cbb101be7ca8d4c3072beb5 (diff) | |
| download | bcm5719-llvm-977d598d78746f5293da4a1201538cf59e6ceee4.tar.gz bcm5719-llvm-977d598d78746f5293da4a1201538cf59e6ceee4.zip | |
[MC] Reorder MCSymbol members to reduce padding.
sizeof(MCSymbol) goes from 72 to 64 bytes on x86_64.
llvm-svn: 238655
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/MC/MCSymbol.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/MC/MCSymbol.h b/llvm/include/llvm/MC/MCSymbol.h index 33fadbc00f7..f6bb1a7d35f 100644 --- a/llvm/include/llvm/MC/MCSymbol.h +++ b/llvm/include/llvm/MC/MCSymbol.h @@ -72,11 +72,6 @@ class MCSymbol { /// symbol has no size this field will be NULL. const MCExpr *SymbolSize = nullptr; - /// The alignment of the symbol, if it is 'common', or -1. - // - // FIXME: Pack this in with other fields? - unsigned CommonAlign = -1U; - union { /// The offset to apply to the fragment address to form this symbol's value. uint64_t Offset; @@ -85,6 +80,11 @@ class MCSymbol { uint64_t CommonSize; }; + /// The alignment of the symbol, if it is 'common', or -1. + // + // FIXME: Pack this in with other fields? + unsigned CommonAlign = -1U; + /// The Flags field is used by object file implementations to store /// additional per symbol information which is not easily classified. mutable uint32_t Flags = 0; |

