@@ -367,9 +367,7 @@ getBranchTargetOpValueMM(const MCInst &MI, unsigned OpNo,
367
367
" getBranchTargetOpValueMM expects only expressions or immediates" );
368
368
369
369
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));
373
371
return 0 ;
374
372
}
375
373
@@ -390,8 +388,8 @@ getBranchTarget21OpValue(const MCInst &MI, unsigned OpNo,
390
388
391
389
const MCExpr *FixupExpression = MCBinaryExpr::createAdd (
392
390
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));
395
393
return 0 ;
396
394
}
397
395
@@ -412,8 +410,8 @@ getBranchTarget21OpValueMM(const MCInst &MI, unsigned OpNo,
412
410
413
411
const MCExpr *FixupExpression = MCBinaryExpr::createAdd (
414
412
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));
417
415
return 0 ;
418
416
}
419
417
@@ -434,8 +432,8 @@ getBranchTarget26OpValue(const MCInst &MI, unsigned OpNo,
434
432
435
433
const MCExpr *FixupExpression = MCBinaryExpr::createAdd (
436
434
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));
439
437
return 0 ;
440
438
}
441
439
@@ -734,8 +732,8 @@ unsigned MipsMCCodeEmitter::getImmOpValue(const MCInst &MI, const MCOperand &MO,
734
732
return Res;
735
733
unsigned MIFrm = MipsII::getFormat (MCII.get (MI.getOpcode ()).TSFlags );
736
734
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)));
739
737
return 0 ;
740
738
}
741
739
return getExprOpValue (Expr, Fixups, STI);
0 commit comments