Skip to content

Commit a02b79f

Browse files
authored
[Mips][NFC] Garbage collect unused code (#85499)
1 parent dec6322 commit a02b79f

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,28 +1255,6 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsigned RegNo,
12551255
emitRRI(Mips::SD, GPReg, Mips::SP, RegOrOffset, SMLoc(), &STI);
12561256
}
12571257

1258-
#if 0
1259-
// We haven't support -mabicalls -mno-shared yet.
1260-
if (-mno-shared) {
1261-
MCSymbol *GPSym = MCA.getContext().getOrCreateSymbol("__gnu_local_gp");
1262-
const MipsMCExpr *HiExpr = MipsMCExpr::create(
1263-
MipsMCExpr::MEK_HI, MCSymbolRefExpr::create(GPSym, MCA.getContext()),
1264-
MCA.getContext());
1265-
const MipsMCExpr *LoExpr = MipsMCExpr::create(
1266-
MipsMCExpr::MEK_LO, MCSymbolRefExpr::create(GPSym, MCA.getContext()),
1267-
MCA.getContext());
1268-
1269-
// lui $gp, %hi(__gnu_local_gp)
1270-
emitRX(Mips::LUi, GPReg, MCOperand::createExpr(HiExpr), SMLoc(), &STI);
1271-
1272-
// addiu $gp, $gp, %lo(__gnu_local_gp)
1273-
emitRRX(Mips::ADDiu, GPReg, GPReg, MCOperand::createExpr(LoExpr), SMLoc(),
1274-
&STI);
1275-
1276-
return;
1277-
}
1278-
#endif
1279-
12801258
const MipsMCExpr *HiExpr = MipsMCExpr::createGpOff(
12811259
MipsMCExpr::MEK_HI, MCSymbolRefExpr::create(&Sym, MCA.getContext()),
12821260
MCA.getContext());

0 commit comments

Comments
 (0)