@@ -2871,19 +2871,19 @@ void AsmPrinter::emitJumpTableInfo() {
28712871    //  Defer MCAssembler based constant folding due to a performance issue. The
28722872    //  label differences will be evaluated at write time.
28732873    for  (const  MachineBasicBlock *MBB : JTBBs)
2874-       emitJumpTableEntry (MJTI, MBB, JTI);
2874+       emitJumpTableEntry (* MJTI, MBB, JTI);
28752875  }
28762876
28772877  if  (EmitJumpTableSizesSection)
2878-     emitJumpTableSizesSection (MJTI, F);
2878+     emitJumpTableSizesSection (* MJTI, F);
28792879
28802880  if  (!JTInDiffSection)
28812881    OutStreamer->emitDataRegion (MCDR_DataRegionEnd);
28822882}
28832883
2884- void  AsmPrinter::emitJumpTableSizesSection (const  MachineJumpTableInfo * MJTI,
2884+ void  AsmPrinter::emitJumpTableSizesSection (const  MachineJumpTableInfo & MJTI,
28852885                                           const  Function &F) const  {
2886-   const  std::vector<MachineJumpTableEntry> &JT = MJTI-> getJumpTables ();
2886+   const  std::vector<MachineJumpTableEntry> &JT = MJTI. getJumpTables ();
28872887
28882888  if  (JT.empty ())
28892889    return ;
@@ -2931,17 +2931,17 @@ void AsmPrinter::emitJumpTableSizesSection(const MachineJumpTableInfo *MJTI,
29312931
29322932// / EmitJumpTableEntry - Emit a jump table entry for the specified MBB to the
29332933// / current stream.
2934- void  AsmPrinter::emitJumpTableEntry (const  MachineJumpTableInfo * MJTI,
2934+ void  AsmPrinter::emitJumpTableEntry (const  MachineJumpTableInfo & MJTI,
29352935                                    const  MachineBasicBlock *MBB,
29362936                                    unsigned  UID) const  {
29372937  assert (MBB && MBB->getNumber () >= 0  && " Invalid basic block"  );
29382938  const  MCExpr *Value = nullptr ;
2939-   switch  (MJTI-> getEntryKind ()) {
2939+   switch  (MJTI. getEntryKind ()) {
29402940  case  MachineJumpTableInfo::EK_Inline:
29412941    llvm_unreachable (" Cannot emit EK_Inline jump table entry"  );
29422942  case  MachineJumpTableInfo::EK_Custom32:
29432943    Value = MF->getSubtarget ().getTargetLowering ()->LowerCustomJumpTableEntry (
2944-         MJTI, MBB, UID, OutContext);
2944+         & MJTI, MBB, UID, OutContext);
29452945    break ;
29462946  case  MachineJumpTableInfo::EK_BlockAddress:
29472947    //  EK_BlockAddress - Each entry is a plain address of block, e.g.:
@@ -2975,7 +2975,7 @@ void AsmPrinter::emitJumpTableEntry(const MachineJumpTableInfo *MJTI,
29752975    //  If the .set directive avoids relocations, this is emitted as:
29762976    //       .set L4_5_set_123, LBB123 - LJTI1_2
29772977    //       .word L4_5_set_123
2978-     if  (MJTI-> getEntryKind () == MachineJumpTableInfo::EK_LabelDifference32 &&
2978+     if  (MJTI. getEntryKind () == MachineJumpTableInfo::EK_LabelDifference32 &&
29792979        MAI->doesSetDirectiveSuppressReloc ()) {
29802980      Value = MCSymbolRefExpr::create (GetJTSetSymbol (UID, MBB->getNumber ()),
29812981                                      OutContext);
@@ -2991,7 +2991,7 @@ void AsmPrinter::emitJumpTableEntry(const MachineJumpTableInfo *MJTI,
29912991
29922992  assert (Value && " Unknown entry kind!"  );
29932993
2994-   unsigned  EntrySize = MJTI-> getEntrySize (getDataLayout ());
2994+   unsigned  EntrySize = MJTI. getEntrySize (getDataLayout ());
29952995  OutStreamer->emitValue (Value, EntrySize);
29962996}
29972997
0 commit comments