Pass MCOp as pointer not as ref

This commit is contained in:
Rot127 2023-05-30 11:40:28 -05:00
parent fe28fc2014
commit b17901c9a3
No known key found for this signature in database
GPG Key ID: 3812B8258810AF67

View File

@ -1597,7 +1597,7 @@ void PrinterCapstone::asmWriterEmitPrintAliasInstrBodyRetFalse() const {
void PrinterCapstone::asmWriterEmitDeclValid(std::string const &TargetName,
StringRef const &ClassName) const {
OS << "static bool " << TargetName << ClassName
<< "ValidateMCOperand(const MCOperand &MCOp,\n"
<< "ValidateMCOperand(const MCOperand *MCOp,\n"
<< " unsigned PredicateIndex);\n";
}
@ -1736,7 +1736,7 @@ void PrinterCapstone::asmWriterEmitPrintMC(
std::vector<const Record *> const &MCOpPredicates) const {
if (!MCOpPredicates.empty()) {
OS << "static bool " << TargetName << ClassName
<< "ValidateMCOperand(const MCOperand &MCOp,\n"
<< "ValidateMCOperand(const MCOperand *MCOp,\n"
<< " unsigned PredicateIndex) {\n"
<< " switch (PredicateIndex) {\n"
<< " default:\n"