mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
MC: Update MCAssembler to use MCSymbol, NFC
Use `MCSymbol` over `MCSymbolData` where both are needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -143,13 +143,13 @@ void X86MachObjectWriter::RecordX86_64Relocation(
|
||||
if (A->isTemporary())
|
||||
A = &Writer->findAliasedSymbol(*A);
|
||||
const MCSymbolData &A_SD = Asm.getSymbolData(*A);
|
||||
const MCSymbol *A_Base = Asm.getAtom(&A_SD);
|
||||
const MCSymbol *A_Base = Asm.getAtom(*A);
|
||||
|
||||
const MCSymbol *B = &Target.getSymB()->getSymbol();
|
||||
if (B->isTemporary())
|
||||
B = &Writer->findAliasedSymbol(*B);
|
||||
const MCSymbolData &B_SD = Asm.getSymbolData(*B);
|
||||
const MCSymbol *B_Base = Asm.getAtom(&B_SD);
|
||||
const MCSymbol *B_Base = Asm.getAtom(*B);
|
||||
|
||||
// Neither symbol can be modified.
|
||||
if (Target.getSymA()->getKind() != MCSymbolRefExpr::VK_None ||
|
||||
@@ -212,7 +212,7 @@ void X86MachObjectWriter::RecordX86_64Relocation(
|
||||
Asm.addLocalUsedInReloc(*Symbol);
|
||||
}
|
||||
const MCSymbolData &SD = Asm.getSymbolData(*Symbol);
|
||||
RelSymbol = Asm.getAtom(&SD);
|
||||
RelSymbol = Asm.getAtom(*Symbol);
|
||||
|
||||
// Relocations inside debug sections always use local relocations when
|
||||
// possible. This seems to be done because the debugger doesn't fully
|
||||
|
||||
Reference in New Issue
Block a user