@@ -367,9 +367,7 @@ getBranchTargetOpValueMM(const MCInst &MI, unsigned OpNo,
367367 " getBranchTargetOpValueMM expects only expressions or immediates" );
368368
369369 const MCExpr *Expr = MO.getExpr ();
370- Fixups.push_back (MCFixup::create (0 , Expr,
371- MCFixupKind (Mips::
372- fixup_MICROMIPS_PC16_S1)));
370+ Fixups.push_back (MCFixup::create (0 , Expr, Mips::fixup_MICROMIPS_PC16_S1));
373371 return 0 ;
374372}
375373
@@ -390,8 +388,8 @@ getBranchTarget21OpValue(const MCInst &MI, unsigned OpNo,
390388
391389 const MCExpr *FixupExpression = MCBinaryExpr::createAdd (
392390 MO.getExpr (), MCConstantExpr::create (-4 , Ctx), Ctx);
393- Fixups.push_back (MCFixup::create ( 0 , FixupExpression,
394- MCFixupKind ( Mips::fixup_MIPS_PC21_S2) ));
391+ Fixups.push_back (
392+ MCFixup::create ( 0 , FixupExpression, Mips::fixup_MIPS_PC21_S2));
395393 return 0 ;
396394}
397395
@@ -412,8 +410,8 @@ getBranchTarget21OpValueMM(const MCInst &MI, unsigned OpNo,
412410
413411 const MCExpr *FixupExpression = MCBinaryExpr::createAdd (
414412 MO.getExpr (), MCConstantExpr::create (-4 , Ctx), Ctx);
415- Fixups.push_back (MCFixup::create ( 0 , FixupExpression,
416- MCFixupKind ( Mips::fixup_MICROMIPS_PC21_S1) ));
413+ Fixups.push_back (
414+ MCFixup::create ( 0 , FixupExpression, Mips::fixup_MICROMIPS_PC21_S1));
417415 return 0 ;
418416}
419417
@@ -434,8 +432,8 @@ getBranchTarget26OpValue(const MCInst &MI, unsigned OpNo,
434432
435433 const MCExpr *FixupExpression = MCBinaryExpr::createAdd (
436434 MO.getExpr (), MCConstantExpr::create (-4 , Ctx), Ctx);
437- Fixups.push_back (MCFixup::create ( 0 , FixupExpression,
438- MCFixupKind ( Mips::fixup_MIPS_PC26_S2) ));
435+ Fixups.push_back (
436+ MCFixup::create ( 0 , FixupExpression, Mips::fixup_MIPS_PC26_S2));
439437 return 0 ;
440438}
441439
@@ -734,8 +732,8 @@ unsigned MipsMCCodeEmitter::getImmOpValue(const MCInst &MI, const MCOperand &MO,
734732 return Res;
735733 unsigned MIFrm = MipsII::getFormat (MCII.get (MI.getOpcode ()).TSFlags );
736734 if (!isa<MCSpecifierExpr>(Expr) && MIFrm == MipsII::FrmI) {
737- Fixups.push_back (MCFixup::create (
738- 0 , Expr, MCFixupKind (Mips::fixup_Mips_AnyImm16), Expr-> getLoc ( )));
735+ Fixups.push_back (
736+ MCFixup::create ( 0 , Expr, MCFixupKind (Mips::fixup_Mips_AnyImm16)));
739737 return 0 ;
740738 }
741739 return getExprOpValue (Expr, Fixups, STI);
0 commit comments