Skip to content

Commit a168c9d

Browse files
committed
Remove unused Target parameter
1 parent a8cf140 commit a168c9d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ namespace {
135135
bool HasV9;
136136

137137
public:
138-
SparcAsmBackend(const Target &T, const MCSubtargetInfo &STI)
138+
SparcAsmBackend(const MCSubtargetInfo &STI)
139139
: MCAsmBackend(STI.getTargetTriple().isLittleEndian()
140140
? llvm::endianness::little
141141
: llvm::endianness::big),
@@ -341,9 +341,8 @@ namespace {
341341
class ELFSparcAsmBackend : public SparcAsmBackend {
342342
Triple::OSType OSType;
343343
public:
344-
ELFSparcAsmBackend(const Target &T, const MCSubtargetInfo &STI,
345-
Triple::OSType OSType)
346-
: SparcAsmBackend(T, STI), OSType(OSType) {}
344+
ELFSparcAsmBackend(const MCSubtargetInfo &STI, Triple::OSType OSType)
345+
: SparcAsmBackend(STI), OSType(OSType) {}
347346

348347
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
349348
const MCValue &Target, MutableArrayRef<char> Data,
@@ -380,5 +379,5 @@ MCAsmBackend *llvm::createSparcAsmBackend(const Target &T,
380379
const MCSubtargetInfo &STI,
381380
const MCRegisterInfo &MRI,
382381
const MCTargetOptions &Options) {
383-
return new ELFSparcAsmBackend(T, STI, STI.getTargetTriple().getOS());
382+
return new ELFSparcAsmBackend(STI, STI.getTargetTriple().getOS());
384383
}

0 commit comments

Comments
 (0)