mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 17:24:34 +00:00
Encode MCSymbol alignment as log2(align).
Given that alignments are always powers of 2, just encode it this way. This matches how we encode alignment on IR GlobalValue's for example. This compresses the CommonAlign member down to 5 bits which allows it to pack better with the surrounding fields. Reviewed by Duncan Exon Smith. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241189 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -19,6 +19,8 @@ using namespace llvm;
|
||||
// Sentinel value for the absolute pseudo section.
|
||||
MCSection *MCSymbol::AbsolutePseudoSection = reinterpret_cast<MCSection *>(1);
|
||||
|
||||
const unsigned MCSymbol::NumCommonAlignmentBits;
|
||||
|
||||
void *MCSymbol::operator new(size_t s, const StringMapEntry<bool> *Name,
|
||||
MCContext &Ctx) {
|
||||
// We may need more space for a Name to account for alignment. So allocate
|
||||
|
Reference in New Issue
Block a user