mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Remove getData.
This completes the mechanical part of merging MCSymbol and MCSymbolData. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -471,10 +471,7 @@ static void AttemptToFoldSymbolOffsetDifference(
|
||||
if (!Asm->getWriter().IsSymbolRefDifferenceFullyResolved(*Asm, A, B, InSet))
|
||||
return;
|
||||
|
||||
const MCSymbol &AD = SA.getData();
|
||||
const MCSymbol &BD = SB.getData();
|
||||
|
||||
if (AD.getFragment() == BD.getFragment()) {
|
||||
if (SA.getFragment() == SB.getFragment()) {
|
||||
Addend += (SA.getOffset() - SB.getOffset());
|
||||
|
||||
// Pointers to Thumb symbols need to have their low-bit set to allow
|
||||
@@ -491,8 +488,8 @@ static void AttemptToFoldSymbolOffsetDifference(
|
||||
if (!Layout)
|
||||
return;
|
||||
|
||||
const MCSection &SecA = *AD.getFragment()->getParent();
|
||||
const MCSection &SecB = *BD.getFragment()->getParent();
|
||||
const MCSection &SecA = *SA.getFragment()->getParent();
|
||||
const MCSection &SecB = *SB.getFragment()->getParent();
|
||||
|
||||
if ((&SecA != &SecB) && !Addrs)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user