@@ -3029,6 +3029,9 @@ void AsmPrinter::emitJumpTableEntry(const MachineJumpTableInfo &MJTI,
30293029 switch (MJTI.getEntryKind ()) {
30303030 case MachineJumpTableInfo::EK_Inline:
30313031 llvm_unreachable (" Cannot emit EK_Inline jump table entry" );
3032+ case MachineJumpTableInfo::EK_GPRel32BlockAddress:
3033+ case MachineJumpTableInfo::EK_GPRel64BlockAddress:
3034+ llvm_unreachable (" MIPS specific" );
30323035 case MachineJumpTableInfo::EK_Custom32:
30333036 Value = MF->getSubtarget ().getTargetLowering ()->LowerCustomJumpTableEntry (
30343037 &MJTI, MBB, UID, OutContext);
@@ -3038,25 +3041,6 @@ void AsmPrinter::emitJumpTableEntry(const MachineJumpTableInfo &MJTI,
30383041 // .word LBB123
30393042 Value = MCSymbolRefExpr::create (MBB->getSymbol (), OutContext);
30403043 break ;
3041- case MachineJumpTableInfo::EK_GPRel32BlockAddress: {
3042- // EK_GPRel32BlockAddress - Each entry is an address of block, encoded
3043- // with a relocation as gp-relative, e.g.:
3044- // .gprel32 LBB123
3045- MCSymbol *MBBSym = MBB->getSymbol ();
3046- OutStreamer->getTargetStreamer ()->emitGPRel32Value (
3047- MCSymbolRefExpr::create (MBBSym, OutContext));
3048- return ;
3049- }
3050-
3051- case MachineJumpTableInfo::EK_GPRel64BlockAddress: {
3052- // EK_GPRel64BlockAddress - Each entry is an address of block, encoded
3053- // with a relocation as gp-relative, e.g.:
3054- // .gpdword LBB123
3055- MCSymbol *MBBSym = MBB->getSymbol ();
3056- OutStreamer->getTargetStreamer ()->emitGPRel64Value (
3057- MCSymbolRefExpr::create (MBBSym, OutContext));
3058- return ;
3059- }
30603044
30613045 case MachineJumpTableInfo::EK_LabelDifference32:
30623046 case MachineJumpTableInfo::EK_LabelDifference64: {
0 commit comments