@@ -321,7 +321,7 @@ class ARMMCCodeEmitter : public MCCodeEmitter {
321321 const MCExpr *Expr = MO.getExpr ();
322322 // Fixups resolve to plain values that need to be encoded.
323323 MCFixupKind Kind = MCFixupKind (ARM::fixup_arm_mod_imm);
324- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
324+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
325325 return 0 ;
326326 }
327327
@@ -340,7 +340,7 @@ class ARMMCCodeEmitter : public MCCodeEmitter {
340340 const MCExpr *Expr = MO.getExpr ();
341341 // Fixups resolve to plain values that need to be encoded.
342342 MCFixupKind Kind = MCFixupKind (ARM::fixup_t2_so_imm);
343- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
343+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
344344 return 0 ;
345345 }
346346 unsigned SoImm = MO.getImm ();
@@ -616,7 +616,7 @@ static uint32_t getBranchTargetOpValue(const MCInst &MI, unsigned OpIdx,
616616 assert (MO.isExpr () && " Unexpected branch target type!" );
617617 const MCExpr *Expr = MO.getExpr ();
618618 MCFixupKind Kind = MCFixupKind (FixupKind);
619- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
619+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
620620
621621 // All of the information is in the fixup.
622622 return 0 ;
@@ -979,7 +979,7 @@ getAddrModeImm12OpValue(const MCInst &MI, unsigned OpIdx,
979979 Reg = CTX.getRegisterInfo ()->getEncodingValue (MO.getReg ());
980980 isAdd = false ; // 'U' bit is set as part of the fixup.
981981 MCFixupKind Kind = MCFixupKind (ARM::fixup_arm_ldst_abs_12);
982- Fixups.push_back (MCFixup::create (0 , MO1.getExpr (), Kind, MI. getLoc () ));
982+ Fixups.push_back (MCFixup::create (0 , MO1.getExpr (), Kind));
983983 }
984984 } else if (MO.isExpr ()) {
985985 Reg = CTX.getRegisterInfo ()->getEncodingValue (ARM::PC); // Rn is PC.
@@ -989,7 +989,7 @@ getAddrModeImm12OpValue(const MCInst &MI, unsigned OpIdx,
989989 Kind = MCFixupKind (ARM::fixup_t2_ldst_pcrel_12);
990990 else
991991 Kind = MCFixupKind (ARM::fixup_arm_ldst_pcrel_12);
992- Fixups.push_back (MCFixup::create (0 , MO.getExpr (), Kind, MI. getLoc () ));
992+ Fixups.push_back (MCFixup::create (0 , MO.getExpr (), Kind));
993993
994994 ++MCNumCPRelocations;
995995 } else {
@@ -1114,7 +1114,7 @@ getT2AddrModeImm8s4OpValue(const MCInst &MI, unsigned OpIdx,
11141114 assert (MO.isExpr () && " Unexpected machine operand type!" );
11151115 const MCExpr *Expr = MO.getExpr ();
11161116 MCFixupKind Kind = MCFixupKind (ARM::fixup_t2_pcrel_10);
1117- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
1117+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
11181118
11191119 ++MCNumCPRelocations;
11201120 } else
@@ -1251,7 +1251,7 @@ uint32_t ARMMCCodeEmitter::getHiLoImmOpValue(const MCInst &MI, unsigned OpIdx,
12511251 break ;
12521252 }
12531253
1254- Fixups.push_back (MCFixup::create (0 , E, Kind, MI. getLoc () ));
1254+ Fixups.push_back (MCFixup::create (0 , E, Kind));
12551255 return 0 ;
12561256 }
12571257 // If the expression doesn't have :upper16:, :lower16: on it, it's just a
@@ -1373,7 +1373,7 @@ getAddrMode3OpValue(const MCInst &MI, unsigned OpIdx,
13731373 assert (MO.isExpr () && " Unexpected machine operand type!" );
13741374 const MCExpr *Expr = MO.getExpr ();
13751375 MCFixupKind Kind = MCFixupKind (ARM::fixup_arm_pcrel_10_unscaled);
1376- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
1376+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
13771377
13781378 ++MCNumCPRelocations;
13791379 return (Rn << 9 ) | (1 << 13 );
@@ -1455,7 +1455,7 @@ getAddrMode5OpValue(const MCInst &MI, unsigned OpIdx,
14551455 Kind = MCFixupKind (ARM::fixup_t2_pcrel_10);
14561456 else
14571457 Kind = MCFixupKind (ARM::fixup_arm_pcrel_10);
1458- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
1458+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
14591459
14601460 ++MCNumCPRelocations;
14611461 } else {
@@ -1495,7 +1495,7 @@ getAddrMode5FP16OpValue(const MCInst &MI, unsigned OpIdx,
14951495 Kind = MCFixupKind (ARM::fixup_t2_pcrel_9);
14961496 else
14971497 Kind = MCFixupKind (ARM::fixup_arm_pcrel_9);
1498- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
1498+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
14991499
15001500 ++MCNumCPRelocations;
15011501 } else {
@@ -1950,7 +1950,7 @@ ARMMCCodeEmitter::getBFAfterTargetOpValue(const MCInst &MI, unsigned OpIdx,
19501950 const MCExpr *DiffExpr = MCBinaryExpr::createSub (
19511951 MO.getExpr (), BranchMO.getExpr (), CTX);
19521952 MCFixupKind Kind = MCFixupKind (ARM::fixup_bfcsel_else_target);
1953- Fixups.push_back (llvm::MCFixup::create (0 , DiffExpr, Kind, MI. getLoc () ));
1953+ Fixups.push_back (llvm::MCFixup::create (0 , DiffExpr, Kind));
19541954 return 0 ;
19551955 }
19561956
0 commit comments