mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -70,8 +70,7 @@ namespace llvm {
|
|||||||
|
|
||||||
typedef unsigned (*TripleMatchQualityFnTy)(const std::string &TT);
|
typedef unsigned (*TripleMatchQualityFnTy)(const std::string &TT);
|
||||||
|
|
||||||
typedef MCAsmInfo *(*MCAsmInfoCtorFnTy)(const Target &T,
|
typedef MCAsmInfo *(*MCAsmInfoCtorFnTy)(StringRef TT);
|
||||||
StringRef TT);
|
|
||||||
typedef MCCodeGenInfo *(*MCCodeGenInfoCtorFnTy)(StringRef TT,
|
typedef MCCodeGenInfo *(*MCCodeGenInfoCtorFnTy)(StringRef TT,
|
||||||
Reloc::Model RM,
|
Reloc::Model RM,
|
||||||
CodeModel::Model CM,
|
CodeModel::Model CM,
|
||||||
@@ -269,7 +268,7 @@ namespace llvm {
|
|||||||
MCAsmInfo *createMCAsmInfo(StringRef Triple) const {
|
MCAsmInfo *createMCAsmInfo(StringRef Triple) const {
|
||||||
if (!MCAsmInfoCtorFn)
|
if (!MCAsmInfoCtorFn)
|
||||||
return 0;
|
return 0;
|
||||||
return MCAsmInfoCtorFn(*this, Triple);
|
return MCAsmInfoCtorFn(Triple);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// createMCCodeGenInfo - Create a MCCodeGenInfo implementation.
|
/// createMCCodeGenInfo - Create a MCCodeGenInfo implementation.
|
||||||
@@ -804,8 +803,8 @@ namespace llvm {
|
|||||||
TargetRegistry::RegisterMCAsmInfo(T, &Allocator);
|
TargetRegistry::RegisterMCAsmInfo(T, &Allocator);
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
static MCAsmInfo *Allocator(const Target &T, StringRef TT) {
|
static MCAsmInfo *Allocator(StringRef TT) {
|
||||||
return new MCAsmInfoImpl(T, TT);
|
return new MCAsmInfoImpl(TT);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@@ -57,7 +57,7 @@ static MCRegisterInfo *createAArch64MCRegisterInfo(StringRef Triple) {
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createAArch64MCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createAArch64MCAsmInfo(StringRef TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
|
|
||||||
MCAsmInfo *MAI = new AArch64ELFMCAsmInfo();
|
MCAsmInfo *MAI = new AArch64ELFMCAsmInfo();
|
||||||
|
@@ -159,7 +159,7 @@ static MCRegisterInfo *createARMMCRegisterInfo(StringRef Triple) {
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createARMMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createARMMCAsmInfo(StringRef TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
|
|
||||||
if (TheTriple.isOSDarwin())
|
if (TheTriple.isOSDarwin())
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
HexagonMCAsmInfo::HexagonMCAsmInfo(const Target &T, StringRef TT) {
|
HexagonMCAsmInfo::HexagonMCAsmInfo(StringRef TT) {
|
||||||
Data16bitsDirective = "\t.half\t";
|
Data16bitsDirective = "\t.half\t";
|
||||||
Data32bitsDirective = "\t.word\t";
|
Data32bitsDirective = "\t.word\t";
|
||||||
Data64bitsDirective = 0; // .xword is only supported by V9.
|
Data64bitsDirective = 0; // .xword is only supported by V9.
|
||||||
|
@@ -18,11 +18,9 @@
|
|||||||
#include "llvm/MC/MCAsmInfo.h"
|
#include "llvm/MC/MCAsmInfo.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class Target;
|
|
||||||
|
|
||||||
class HexagonMCAsmInfo : public MCAsmInfo {
|
class HexagonMCAsmInfo : public MCAsmInfo {
|
||||||
public:
|
public:
|
||||||
explicit HexagonMCAsmInfo(const Target &T, StringRef TT);
|
explicit HexagonMCAsmInfo(StringRef TT);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
@@ -54,8 +54,8 @@ static MCSubtargetInfo *createHexagonMCSubtargetInfo(StringRef TT,
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createHexagonMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createHexagonMCAsmInfo(StringRef TT) {
|
||||||
MCAsmInfo *MAI = new HexagonMCAsmInfo(T, TT);
|
MCAsmInfo *MAI = new HexagonMCAsmInfo(TT);
|
||||||
|
|
||||||
// VirtualFP = (R30 + #0).
|
// VirtualFP = (R30 + #0).
|
||||||
MachineLocation Dst(MachineLocation::VirtualFP);
|
MachineLocation Dst(MachineLocation::VirtualFP);
|
||||||
|
@@ -53,7 +53,7 @@ static MCSubtargetInfo *createMBlazeMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createMCAsmInfo(StringRef TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
switch (TheTriple.getOS()) {
|
switch (TheTriple.getOS()) {
|
||||||
default:
|
default:
|
||||||
|
@@ -17,7 +17,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
void MSP430MCAsmInfo::anchor() { }
|
void MSP430MCAsmInfo::anchor() { }
|
||||||
|
|
||||||
MSP430MCAsmInfo::MSP430MCAsmInfo(const Target &T, StringRef TT) {
|
MSP430MCAsmInfo::MSP430MCAsmInfo(StringRef TT) {
|
||||||
PointerSize = CalleeSaveStackSlotSize = 2;
|
PointerSize = CalleeSaveStackSlotSize = 2;
|
||||||
|
|
||||||
PrivateGlobalPrefix = ".L";
|
PrivateGlobalPrefix = ".L";
|
||||||
|
@@ -18,12 +18,11 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class StringRef;
|
class StringRef;
|
||||||
class Target;
|
|
||||||
|
|
||||||
class MSP430MCAsmInfo : public MCAsmInfo {
|
class MSP430MCAsmInfo : public MCAsmInfo {
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
public:
|
public:
|
||||||
explicit MSP430MCAsmInfo(const Target &T, StringRef TT);
|
explicit MSP430MCAsmInfo(StringRef TT);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
@@ -18,7 +18,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
void MipsMCAsmInfo::anchor() { }
|
void MipsMCAsmInfo::anchor() { }
|
||||||
|
|
||||||
MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) {
|
MipsMCAsmInfo::MipsMCAsmInfo(StringRef TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
if ((TheTriple.getArch() == Triple::mips) ||
|
if ((TheTriple.getArch() == Triple::mips) ||
|
||||||
(TheTriple.getArch() == Triple::mips64))
|
(TheTriple.getArch() == Triple::mips64))
|
||||||
|
@@ -18,12 +18,11 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class StringRef;
|
class StringRef;
|
||||||
class Target;
|
|
||||||
|
|
||||||
class MipsMCAsmInfo : public MCAsmInfo {
|
class MipsMCAsmInfo : public MCAsmInfo {
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
public:
|
public:
|
||||||
explicit MipsMCAsmInfo(const Target &T, StringRef TT);
|
explicit MipsMCAsmInfo(StringRef TT);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
@@ -93,8 +93,8 @@ static MCSubtargetInfo *createMipsMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createMipsMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createMipsMCAsmInfo(StringRef TT) {
|
||||||
MCAsmInfo *MAI = new MipsMCAsmInfo(T, TT);
|
MCAsmInfo *MAI = new MipsMCAsmInfo(TT);
|
||||||
|
|
||||||
MachineLocation Dst(MachineLocation::VirtualFP);
|
MachineLocation Dst(MachineLocation::VirtualFP);
|
||||||
MachineLocation Src(Mips::SP, 0);
|
MachineLocation Src(Mips::SP, 0);
|
||||||
|
@@ -27,7 +27,7 @@ Debug("debug-compile", cl::desc("Compile for debugging"), cl::Hidden,
|
|||||||
|
|
||||||
void NVPTXMCAsmInfo::anchor() {}
|
void NVPTXMCAsmInfo::anchor() {}
|
||||||
|
|
||||||
NVPTXMCAsmInfo::NVPTXMCAsmInfo(const Target &T, const StringRef &TT) {
|
NVPTXMCAsmInfo::NVPTXMCAsmInfo(const StringRef &TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
if (TheTriple.getArch() == Triple::nvptx64) {
|
if (TheTriple.getArch() == Triple::nvptx64) {
|
||||||
PointerSize = CalleeSaveStackSlotSize = 8;
|
PointerSize = CalleeSaveStackSlotSize = 8;
|
||||||
|
@@ -23,7 +23,7 @@ class StringRef;
|
|||||||
class NVPTXMCAsmInfo : public MCAsmInfo {
|
class NVPTXMCAsmInfo : public MCAsmInfo {
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
public:
|
public:
|
||||||
explicit NVPTXMCAsmInfo(const Target &T, const StringRef &TT);
|
explicit NVPTXMCAsmInfo(const StringRef &TT);
|
||||||
};
|
};
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ static MCSubtargetInfo *createPPCMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createPPCMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createPPCMCAsmInfo(StringRef TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
bool isPPC64 = TheTriple.getArch() == Triple::ppc64;
|
bool isPPC64 = TheTriple.getArch() == Triple::ppc64;
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
void SparcELFMCAsmInfo::anchor() { }
|
void SparcELFMCAsmInfo::anchor() { }
|
||||||
|
|
||||||
SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, StringRef TT) {
|
SparcELFMCAsmInfo::SparcELFMCAsmInfo(StringRef TT) {
|
||||||
IsLittleEndian = false;
|
IsLittleEndian = false;
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
if (TheTriple.getArch() == Triple::sparcv9) {
|
if (TheTriple.getArch() == Triple::sparcv9) {
|
||||||
|
@@ -18,12 +18,11 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class StringRef;
|
class StringRef;
|
||||||
class Target;
|
|
||||||
|
|
||||||
class SparcELFMCAsmInfo : public MCAsmInfo {
|
class SparcELFMCAsmInfo : public MCAsmInfo {
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
public:
|
public:
|
||||||
explicit SparcELFMCAsmInfo(const Target &T, StringRef TT);
|
explicit SparcELFMCAsmInfo(StringRef TT);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) {
|
SystemZMCAsmInfo::SystemZMCAsmInfo(StringRef TT) {
|
||||||
PointerSize = 8;
|
PointerSize = 8;
|
||||||
CalleeSaveStackSlotSize = 8;
|
CalleeSaveStackSlotSize = 8;
|
||||||
IsLittleEndian = false;
|
IsLittleEndian = false;
|
||||||
|
@@ -14,12 +14,11 @@
|
|||||||
#include "llvm/Support/Compiler.h"
|
#include "llvm/Support/Compiler.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class Target;
|
|
||||||
class StringRef;
|
class StringRef;
|
||||||
|
|
||||||
class SystemZMCAsmInfo : public MCAsmInfo {
|
class SystemZMCAsmInfo : public MCAsmInfo {
|
||||||
public:
|
public:
|
||||||
explicit SystemZMCAsmInfo(const Target &T, StringRef TT);
|
explicit SystemZMCAsmInfo(StringRef TT);
|
||||||
|
|
||||||
// Override MCAsmInfo;
|
// Override MCAsmInfo;
|
||||||
virtual const MCSection *getNonexecutableStackSection(MCContext &Ctx) const
|
virtual const MCSection *getNonexecutableStackSection(MCContext &Ctx) const
|
||||||
|
@@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static MCAsmInfo *createSystemZMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createSystemZMCAsmInfo(StringRef TT) {
|
||||||
MCAsmInfo *MAI = new SystemZMCAsmInfo(T, TT);
|
MCAsmInfo *MAI = new SystemZMCAsmInfo(TT);
|
||||||
MachineLocation FPDst(MachineLocation::VirtualFP);
|
MachineLocation FPDst(MachineLocation::VirtualFP);
|
||||||
MachineLocation FPSrc(SystemZ::R15D, -SystemZMC::CFAOffsetFromInitialSP);
|
MachineLocation FPSrc(SystemZ::R15D, -SystemZMC::CFAOffsetFromInitialSP);
|
||||||
MAI->addInitialFrameState(0, FPDst, FPSrc);
|
MAI->addInitialFrameState(0, FPDst, FPSrc);
|
||||||
|
@@ -263,7 +263,7 @@ static MCRegisterInfo *createX86MCRegisterInfo(StringRef TT) {
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createX86MCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createX86MCAsmInfo(StringRef TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
bool is64Bit = TheTriple.getArch() == Triple::x86_64;
|
bool is64Bit = TheTriple.getArch() == Triple::x86_64;
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
void XCoreMCAsmInfo::anchor() { }
|
void XCoreMCAsmInfo::anchor() { }
|
||||||
|
|
||||||
XCoreMCAsmInfo::XCoreMCAsmInfo(const Target &T, StringRef TT) {
|
XCoreMCAsmInfo::XCoreMCAsmInfo(StringRef TT) {
|
||||||
SupportsDebugInformation = true;
|
SupportsDebugInformation = true;
|
||||||
Data16bitsDirective = "\t.short\t";
|
Data16bitsDirective = "\t.short\t";
|
||||||
Data32bitsDirective = "\t.long\t";
|
Data32bitsDirective = "\t.long\t";
|
||||||
|
@@ -23,7 +23,7 @@ namespace llvm {
|
|||||||
class XCoreMCAsmInfo : public MCAsmInfo {
|
class XCoreMCAsmInfo : public MCAsmInfo {
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
public:
|
public:
|
||||||
explicit XCoreMCAsmInfo(const Target &T, StringRef TT);
|
explicit XCoreMCAsmInfo(StringRef TT);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
@@ -51,8 +51,8 @@ static MCSubtargetInfo *createXCoreMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MCAsmInfo *createXCoreMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createXCoreMCAsmInfo(StringRef TT) {
|
||||||
MCAsmInfo *MAI = new XCoreMCAsmInfo(T, TT);
|
MCAsmInfo *MAI = new XCoreMCAsmInfo(TT);
|
||||||
|
|
||||||
// Initial state of the frame pointer is SP.
|
// Initial state of the frame pointer is SP.
|
||||||
MachineLocation Dst(MachineLocation::VirtualFP);
|
MachineLocation Dst(MachineLocation::VirtualFP);
|
||||||
|
Reference in New Issue
Block a user