mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
MC: Change MCFragment::Atom to an MCSymbol, NFC
Change `MCFragment::Atom` from an `MCSymbolData` to an `MCSymbol`, moving in the direction of removing the back-pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -679,8 +679,6 @@ bool MachObjectWriter::IsSymbolRefDifferenceFullyResolvedImpl(
|
||||
// - addr(atom(B)) - offset(B)
|
||||
// and the offsets are not relocatable, so the fixup is fully resolved when
|
||||
// addr(atom(A)) - addr(atom(B)) == 0.
|
||||
const MCSymbolData *A_Base = nullptr, *B_Base = nullptr;
|
||||
|
||||
const MCSymbol &SA = findAliasedSymbol(DataA.getSymbol());
|
||||
const MCSection &SecA = SA.getSection();
|
||||
const MCSection &SecB = FB.getParent()->getSection();
|
||||
@@ -733,11 +731,8 @@ bool MachObjectWriter::IsSymbolRefDifferenceFullyResolvedImpl(
|
||||
if (!FA)
|
||||
return false;
|
||||
|
||||
A_Base = FA->getAtom();
|
||||
B_Base = FB.getAtom();
|
||||
|
||||
// If the atoms are the same, they are guaranteed to have the same address.
|
||||
if (A_Base == B_Base)
|
||||
if (FA->getAtom() == FB.getAtom())
|
||||
return true;
|
||||
|
||||
// Otherwise, we can't prove this is fully resolved.
|
||||
|
||||
Reference in New Issue
Block a user