mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Move common symbol related information from MCSectionData to MCSymbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -373,13 +373,13 @@ void MachObjectWriter::WriteNlist(MachSymbolData &MSD,
|
||||
Address = AliaseeInfo->StringIndex;
|
||||
else if (Symbol->isDefined())
|
||||
Address = getSymbolAddress(OrigSymbol, Layout);
|
||||
else if (Data.isCommon()) {
|
||||
else if (Symbol->isCommon()) {
|
||||
// Common symbols are encoded with the size in the address
|
||||
// field, and their alignment in the flags.
|
||||
Address = Data.getCommonSize();
|
||||
Address = Symbol->getCommonSize();
|
||||
|
||||
// Common alignment is packed into the 'desc' bits.
|
||||
if (unsigned Align = Data.getCommonAlignment()) {
|
||||
if (unsigned Align = Symbol->getCommonAlignment()) {
|
||||
unsigned Log2Size = Log2_32(Align);
|
||||
assert((1U << Log2Size) == Align && "Invalid 'common' alignment!");
|
||||
if (Log2Size > 15)
|
||||
|
Reference in New Issue
Block a user