@@ -1255,28 +1255,6 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsigned RegNo,
1255
1255
emitRRI (Mips::SD, GPReg, Mips::SP, RegOrOffset, SMLoc (), &STI);
1256
1256
}
1257
1257
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
-
1280
1258
const MipsMCExpr *HiExpr = MipsMCExpr::createGpOff (
1281
1259
MipsMCExpr::MEK_HI, MCSymbolRefExpr::create (&Sym, MCA.getContext ()),
1282
1260
MCA.getContext ());
0 commit comments