@@ -2922,19 +2922,19 @@ void AsmPrinter::emitJumpTableInfo() {
2922
2922
// Defer MCAssembler based constant folding due to a performance issue. The
2923
2923
// label differences will be evaluated at write time.
2924
2924
for (const MachineBasicBlock *MBB : JTBBs)
2925
- emitJumpTableEntry (MJTI, MBB, JTI);
2925
+ emitJumpTableEntry (* MJTI, MBB, JTI);
2926
2926
}
2927
2927
2928
2928
if (EmitJumpTableSizesSection)
2929
- emitJumpTableSizesSection (MJTI, F);
2929
+ emitJumpTableSizesSection (* MJTI, F);
2930
2930
2931
2931
if (!JTInDiffSection)
2932
2932
OutStreamer->emitDataRegion (MCDR_DataRegionEnd);
2933
2933
}
2934
2934
2935
- void AsmPrinter::emitJumpTableSizesSection (const MachineJumpTableInfo * MJTI,
2935
+ void AsmPrinter::emitJumpTableSizesSection (const MachineJumpTableInfo & MJTI,
2936
2936
const Function &F) const {
2937
- const std::vector<MachineJumpTableEntry> &JT = MJTI-> getJumpTables ();
2937
+ const std::vector<MachineJumpTableEntry> &JT = MJTI. getJumpTables ();
2938
2938
2939
2939
if (JT.empty ())
2940
2940
return ;
@@ -2982,17 +2982,17 @@ void AsmPrinter::emitJumpTableSizesSection(const MachineJumpTableInfo *MJTI,
2982
2982
2983
2983
// / EmitJumpTableEntry - Emit a jump table entry for the specified MBB to the
2984
2984
// / current stream.
2985
- void AsmPrinter::emitJumpTableEntry (const MachineJumpTableInfo * MJTI,
2985
+ void AsmPrinter::emitJumpTableEntry (const MachineJumpTableInfo & MJTI,
2986
2986
const MachineBasicBlock *MBB,
2987
2987
unsigned UID) const {
2988
2988
assert (MBB && MBB->getNumber () >= 0 && " Invalid basic block" );
2989
2989
const MCExpr *Value = nullptr ;
2990
- switch (MJTI-> getEntryKind ()) {
2990
+ switch (MJTI. getEntryKind ()) {
2991
2991
case MachineJumpTableInfo::EK_Inline:
2992
2992
llvm_unreachable (" Cannot emit EK_Inline jump table entry" );
2993
2993
case MachineJumpTableInfo::EK_Custom32:
2994
2994
Value = MF->getSubtarget ().getTargetLowering ()->LowerCustomJumpTableEntry (
2995
- MJTI, MBB, UID, OutContext);
2995
+ & MJTI, MBB, UID, OutContext);
2996
2996
break ;
2997
2997
case MachineJumpTableInfo::EK_BlockAddress:
2998
2998
// EK_BlockAddress - Each entry is a plain address of block, e.g.:
@@ -3026,7 +3026,7 @@ void AsmPrinter::emitJumpTableEntry(const MachineJumpTableInfo *MJTI,
3026
3026
// If the .set directive avoids relocations, this is emitted as:
3027
3027
// .set L4_5_set_123, LBB123 - LJTI1_2
3028
3028
// .word L4_5_set_123
3029
- if (MJTI-> getEntryKind () == MachineJumpTableInfo::EK_LabelDifference32 &&
3029
+ if (MJTI. getEntryKind () == MachineJumpTableInfo::EK_LabelDifference32 &&
3030
3030
MAI->doesSetDirectiveSuppressReloc ()) {
3031
3031
Value = MCSymbolRefExpr::create (GetJTSetSymbol (UID, MBB->getNumber ()),
3032
3032
OutContext);
@@ -3042,7 +3042,7 @@ void AsmPrinter::emitJumpTableEntry(const MachineJumpTableInfo *MJTI,
3042
3042
3043
3043
assert (Value && " Unknown entry kind!" );
3044
3044
3045
- unsigned EntrySize = MJTI-> getEntrySize (getDataLayout ());
3045
+ unsigned EntrySize = MJTI. getEntrySize (getDataLayout ());
3046
3046
OutStreamer->emitValue (Value, EntrySize);
3047
3047
}
3048
3048
0 commit comments