@@ -321,7 +321,7 @@ class ARMMCCodeEmitter : public MCCodeEmitter {
321
321
const MCExpr *Expr = MO.getExpr ();
322
322
// Fixups resolve to plain values that need to be encoded.
323
323
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));
325
325
return 0 ;
326
326
}
327
327
@@ -340,7 +340,7 @@ class ARMMCCodeEmitter : public MCCodeEmitter {
340
340
const MCExpr *Expr = MO.getExpr ();
341
341
// Fixups resolve to plain values that need to be encoded.
342
342
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));
344
344
return 0 ;
345
345
}
346
346
unsigned SoImm = MO.getImm ();
@@ -616,7 +616,7 @@ static uint32_t getBranchTargetOpValue(const MCInst &MI, unsigned OpIdx,
616
616
assert (MO.isExpr () && " Unexpected branch target type!" );
617
617
const MCExpr *Expr = MO.getExpr ();
618
618
MCFixupKind Kind = MCFixupKind (FixupKind);
619
- Fixups.push_back (MCFixup::create (0 , Expr, Kind, MI. getLoc () ));
619
+ Fixups.push_back (MCFixup::create (0 , Expr, Kind));
620
620
621
621
// All of the information is in the fixup.
622
622
return 0 ;
@@ -979,7 +979,7 @@ getAddrModeImm12OpValue(const MCInst &MI, unsigned OpIdx,
979
979
Reg = CTX.getRegisterInfo ()->getEncodingValue (MO.getReg ());
980
980
isAdd = false ; // 'U' bit is set as part of the fixup.
981
981
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));
983
983
}
984
984
} else if (MO.isExpr ()) {
985
985
Reg = CTX.getRegisterInfo ()->getEncodingValue (ARM::PC); // Rn is PC.
@@ -989,7 +989,7 @@ getAddrModeImm12OpValue(const MCInst &MI, unsigned OpIdx,
989
989
Kind = MCFixupKind (ARM::fixup_t2_ldst_pcrel_12);
990
990
else
991
991
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));
993
993
994
994
++MCNumCPRelocations;
995
995
} else {
@@ -1114,7 +1114,7 @@ getT2AddrModeImm8s4OpValue(const MCInst &MI, unsigned OpIdx,
1114
1114
assert (MO.isExpr () && " Unexpected machine operand type!" );
1115
1115
const MCExpr *Expr = MO.getExpr ();
1116
1116
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));
1118
1118
1119
1119
++MCNumCPRelocations;
1120
1120
} else
@@ -1251,7 +1251,7 @@ uint32_t ARMMCCodeEmitter::getHiLoImmOpValue(const MCInst &MI, unsigned OpIdx,
1251
1251
break ;
1252
1252
}
1253
1253
1254
- Fixups.push_back (MCFixup::create (0 , E, Kind, MI. getLoc () ));
1254
+ Fixups.push_back (MCFixup::create (0 , E, Kind));
1255
1255
return 0 ;
1256
1256
}
1257
1257
// If the expression doesn't have :upper16:, :lower16: on it, it's just a
@@ -1373,7 +1373,7 @@ getAddrMode3OpValue(const MCInst &MI, unsigned OpIdx,
1373
1373
assert (MO.isExpr () && " Unexpected machine operand type!" );
1374
1374
const MCExpr *Expr = MO.getExpr ();
1375
1375
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));
1377
1377
1378
1378
++MCNumCPRelocations;
1379
1379
return (Rn << 9 ) | (1 << 13 );
@@ -1455,7 +1455,7 @@ getAddrMode5OpValue(const MCInst &MI, unsigned OpIdx,
1455
1455
Kind = MCFixupKind (ARM::fixup_t2_pcrel_10);
1456
1456
else
1457
1457
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));
1459
1459
1460
1460
++MCNumCPRelocations;
1461
1461
} else {
@@ -1495,7 +1495,7 @@ getAddrMode5FP16OpValue(const MCInst &MI, unsigned OpIdx,
1495
1495
Kind = MCFixupKind (ARM::fixup_t2_pcrel_9);
1496
1496
else
1497
1497
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));
1499
1499
1500
1500
++MCNumCPRelocations;
1501
1501
} else {
@@ -1950,7 +1950,7 @@ ARMMCCodeEmitter::getBFAfterTargetOpValue(const MCInst &MI, unsigned OpIdx,
1950
1950
const MCExpr *DiffExpr = MCBinaryExpr::createSub (
1951
1951
MO.getExpr (), BranchMO.getExpr (), CTX);
1952
1952
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));
1954
1954
return 0 ;
1955
1955
}
1956
1956
0 commit comments