Pack MCSymbol::HasName in to a spare bit in the section/fragment union.
authorPete Cooper <peter_cooper@apple.com>
Tue, 30 Jun 2015 20:54:21 +0000 (20:54 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 30 Jun 2015 20:54:21 +0000 (20:54 +0000)
commit8cdbab9dd653560218f872244c23b7cab2fa6451
tree05eddacd446ebd4fb80289fd3109301bb753b55d
parent28a83187a2e1eba30f3f3ab68367c325443036b3
Pack MCSymbol::HasName in to a spare bit in the section/fragment union.

This is part of an effort to pack the average MCSymbol down to 24 bytes.

The HasName bit was pushing the size of the bitfield over to another word,
so this change uses a PointerIntPair to fit in it to unused bits of a
PointerUnion.

Reviewed by Rafael EspĂ­ndola

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241115 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSymbol.h
lib/MC/MCSymbol.cpp