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)
commit2b00f08620d99e49734a9cae8c14461912afbc47
treee5df6107b065f52996f42cfc355b3aa453fe02f3
parent10fcac7b0768dfb1d9fb3030f2bb664ad8e4e65b
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

llvm-svn: 241115
llvm/include/llvm/MC/MCSymbol.h
llvm/lib/MC/MCSymbol.cpp