Change RegDiffLists type to MCPhysReg

This commit is contained in:
Jiajie Chen 2024-05-03 17:45:00 +08:00 committed by Rot127
parent 91da70b398
commit af1ff9c099

View File

@ -230,7 +230,7 @@ static void printDiff16(raw_ostream &OS, int16_t Val) { OS << Val; }
void PrinterCapstone::regInfoEmitRegDiffLists(
std::string const TargetName,
SequenceToOffsetTable<DiffVec> const &DiffSeqs) const {
OS << "static const int16_t " << TargetName << "RegDiffLists[] = {\n";
OS << "static const MCPhysReg " << TargetName << "RegDiffLists[] = {\n";
DiffSeqs.emit(OS, printDiff16);
OS << "};\n\n";
}