@@ -2636,7 +2636,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
2636
2636
}
2637
2637
if (MONum < MCID.getNumOperands ()) {
2638
2638
if (const TargetRegisterClass *DRC =
2639
- TII->getRegClass (MCID, MONum, TRI, *MF )) {
2639
+ TII->getRegClass (MCID, MONum, TRI)) {
2640
2640
if (!DRC->contains (Reg)) {
2641
2641
report (" Illegal physical register for instruction" , MO, MONum);
2642
2642
OS << printReg (Reg, TRI) << " is not a "
@@ -2721,11 +2721,11 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
2721
2721
// comply to it.
2722
2722
if (!isPreISelGenericOpcode (MCID.getOpcode ()) &&
2723
2723
MONum < MCID.getNumOperands () &&
2724
- TII->getRegClass (MCID, MONum, TRI, *MF )) {
2724
+ TII->getRegClass (MCID, MONum, TRI)) {
2725
2725
report (" Virtual register does not match instruction constraint" , MO,
2726
2726
MONum);
2727
2727
OS << " Expect register class "
2728
- << TRI->getRegClassName (TII->getRegClass (MCID, MONum, TRI, *MF ))
2728
+ << TRI->getRegClassName (TII->getRegClass (MCID, MONum, TRI))
2729
2729
<< " but got nothing\n " ;
2730
2730
return ;
2731
2731
}
@@ -2752,7 +2752,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
2752
2752
}
2753
2753
if (MONum < MCID.getNumOperands ()) {
2754
2754
if (const TargetRegisterClass *DRC =
2755
- TII->getRegClass (MCID, MONum, TRI, *MF )) {
2755
+ TII->getRegClass (MCID, MONum, TRI)) {
2756
2756
if (SubIdx) {
2757
2757
const TargetRegisterClass *SuperRC =
2758
2758
TRI->getLargestLegalSuperClass (RC, *MF);
0 commit comments