mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
563ef5ec91
commit
b814110612
@ -650,8 +650,7 @@ private:
|
||||
public:
|
||||
/// Find the symbol which defines the atom containing the given symbol, or
|
||||
/// null if there is no such symbol.
|
||||
const MCSymbolData *getAtom(const MCAsmLayout &Layout,
|
||||
const MCSymbolData *Symbol) const;
|
||||
const MCSymbolData *getAtom(const MCSymbolData *Symbol) const;
|
||||
|
||||
/// Check whether a particular symbol is visible to the linker and is required
|
||||
/// in the symbol table, or whether it can be discarded by the assembler. This
|
||||
|
@ -291,7 +291,7 @@ static bool isScatteredFixupFullyResolved(const MCAssembler &Asm,
|
||||
if (A->getKind() != MCSymbolRefExpr::VK_None)
|
||||
return false;
|
||||
|
||||
A_Base = Asm.getAtom(Layout, &Asm.getSymbolData(A->getSymbol()));
|
||||
A_Base = Asm.getAtom(&Asm.getSymbolData(A->getSymbol()));
|
||||
if (!A_Base)
|
||||
return false;
|
||||
}
|
||||
@ -301,7 +301,7 @@ static bool isScatteredFixupFullyResolved(const MCAssembler &Asm,
|
||||
if (B->getKind() != MCSymbolRefExpr::VK_None)
|
||||
return false;
|
||||
|
||||
B_Base = Asm.getAtom(Layout, &Asm.getSymbolData(B->getSymbol()));
|
||||
B_Base = Asm.getAtom(&Asm.getSymbolData(B->getSymbol()));
|
||||
if (!B_Base)
|
||||
return false;
|
||||
}
|
||||
@ -328,8 +328,7 @@ bool MCAssembler::isSymbolLinkerVisible(const MCSymbol &Symbol) const {
|
||||
return getBackend().doesSectionRequireSymbols(Symbol.getSection());
|
||||
}
|
||||
|
||||
const MCSymbolData *MCAssembler::getAtom(const MCAsmLayout &Layout,
|
||||
const MCSymbolData *SD) const {
|
||||
const MCSymbolData *MCAssembler::getAtom(const MCSymbolData *SD) const {
|
||||
// Linker visible symbols define atoms.
|
||||
if (isSymbolLinkerVisible(SD->getSymbol()))
|
||||
return SD;
|
||||
|
@ -518,11 +518,11 @@ public:
|
||||
} else if (Target.getSymB()) { // A - B + constant
|
||||
const MCSymbol *A = &Target.getSymA()->getSymbol();
|
||||
MCSymbolData &A_SD = Asm.getSymbolData(*A);
|
||||
const MCSymbolData *A_Base = Asm.getAtom(Layout, &A_SD);
|
||||
const MCSymbolData *A_Base = Asm.getAtom(&A_SD);
|
||||
|
||||
const MCSymbol *B = &Target.getSymB()->getSymbol();
|
||||
MCSymbolData &B_SD = Asm.getSymbolData(*B);
|
||||
const MCSymbolData *B_Base = Asm.getAtom(Layout, &B_SD);
|
||||
const MCSymbolData *B_Base = Asm.getAtom(&B_SD);
|
||||
|
||||
// Neither symbol can be modified.
|
||||
if (Target.getSymA()->getKind() != MCSymbolRefExpr::VK_None ||
|
||||
@ -567,7 +567,7 @@ public:
|
||||
} else {
|
||||
const MCSymbol *Symbol = &Target.getSymA()->getSymbol();
|
||||
MCSymbolData &SD = Asm.getSymbolData(*Symbol);
|
||||
const MCSymbolData *Base = Asm.getAtom(Layout, &SD);
|
||||
const MCSymbolData *Base = Asm.getAtom(&SD);
|
||||
|
||||
// Relocations inside debug sections always use local relocations when
|
||||
// possible. This seems to be done because the debugger doesn't fully
|
||||
|
Loading…
Reference in New Issue
Block a user