@@ -525,7 +525,7 @@ class SparcOperand : public MCParsedAsmOperand {
525
525
}
526
526
527
527
static bool MorphToIntPairReg (SparcOperand &Op) {
528
- unsigned Reg = Op.getReg ();
528
+ MCRegister Reg = Op.getReg ();
529
529
assert (Op.Reg .Kind == rk_IntReg);
530
530
unsigned regIdx = 32 ;
531
531
if (Reg >= Sparc::G0 && Reg <= Sparc::G7)
@@ -544,7 +544,7 @@ class SparcOperand : public MCParsedAsmOperand {
544
544
}
545
545
546
546
static bool MorphToDoubleReg (SparcOperand &Op) {
547
- unsigned Reg = Op.getReg ();
547
+ MCRegister Reg = Op.getReg ();
548
548
assert (Op.Reg .Kind == rk_FloatReg);
549
549
unsigned regIdx = Reg - Sparc::F0;
550
550
if (regIdx % 2 || regIdx > 31 )
@@ -555,7 +555,7 @@ class SparcOperand : public MCParsedAsmOperand {
555
555
}
556
556
557
557
static bool MorphToQuadReg (SparcOperand &Op) {
558
- unsigned Reg = Op.getReg ();
558
+ MCRegister Reg = Op.getReg ();
559
559
unsigned regIdx = 0 ;
560
560
switch (Op.Reg .Kind ) {
561
561
default : llvm_unreachable (" Unexpected register kind!" );
@@ -578,7 +578,7 @@ class SparcOperand : public MCParsedAsmOperand {
578
578
}
579
579
580
580
static bool MorphToCoprocPairReg (SparcOperand &Op) {
581
- unsigned Reg = Op.getReg ();
581
+ MCRegister Reg = Op.getReg ();
582
582
assert (Op.Reg .Kind == rk_CoprocReg);
583
583
unsigned regIdx = 32 ;
584
584
if (Reg >= Sparc::C0 && Reg <= Sparc::C31)
@@ -592,7 +592,7 @@ class SparcOperand : public MCParsedAsmOperand {
592
592
593
593
static std::unique_ptr<SparcOperand>
594
594
MorphToMEMrr (unsigned Base, std::unique_ptr<SparcOperand> Op) {
595
- unsigned offsetReg = Op->getReg ();
595
+ MCRegister offsetReg = Op->getReg ();
596
596
Op->Kind = k_MemoryReg;
597
597
Op->Mem .Base = Base;
598
598
Op->Mem .OffsetReg = offsetReg;
0 commit comments