diff options
-rw-r--r-- | llvm/utils/TableGen/AsmWriterInst.cpp | 4 | ||||
-rw-r--r-- | llvm/utils/TableGen/AsmWriterInst.h | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/llvm/utils/TableGen/AsmWriterInst.cpp b/llvm/utils/TableGen/AsmWriterInst.cpp index f83b632cfd8..2c19e5d663d 100644 --- a/llvm/utils/TableGen/AsmWriterInst.cpp +++ b/llvm/utils/TableGen/AsmWriterInst.cpp @@ -162,14 +162,14 @@ AsmWriterInst::AsmWriterInst(const CodeGenInstruction &CGI, unsigned CGIIndex, if (VarName.empty()) { // Just a modifier, pass this into PrintSpecial. - Operands.emplace_back("PrintSpecial", ~0U, ~0U, Modifier); + Operands.emplace_back("PrintSpecial", ~0U, Modifier); } else { // Otherwise, normal operand. unsigned OpNo = CGI.Operands.getOperandNamed(VarName); CGIOperandList::OperandInfo OpInfo = CGI.Operands[OpNo]; unsigned MIOp = OpInfo.MIOperandNo; - Operands.emplace_back(OpInfo.PrinterMethodName, OpNo, MIOp, Modifier); + Operands.emplace_back(OpInfo.PrinterMethodName, MIOp, Modifier); } LastEmitted = VarEnd; } diff --git a/llvm/utils/TableGen/AsmWriterInst.h b/llvm/utils/TableGen/AsmWriterInst.h index 16204173024..ce3832f9d90 100644 --- a/llvm/utils/TableGen/AsmWriterInst.h +++ b/llvm/utils/TableGen/AsmWriterInst.h @@ -41,10 +41,6 @@ namespace llvm { /// into the asm writer. std::string Str; - /// CGIOpNo - For isMachineInstrOperand, this is the index of the operand in - /// the CodeGenInstruction. - unsigned CGIOpNo; - /// MiOpNo - For isMachineInstrOperand, this is the operand number of the /// machine instruction. unsigned MIOpNo; @@ -61,11 +57,10 @@ namespace llvm { : OperandType(op), Str(LitStr) {} AsmWriterOperand(const std::string &Printer, - unsigned _CGIOpNo, unsigned _MIOpNo, const std::string &Modifier, OpType op = isMachineInstrOperand) - : OperandType(op), Str(Printer), CGIOpNo(_CGIOpNo), MIOpNo(_MIOpNo), + : OperandType(op), Str(Printer), MIOpNo(_MIOpNo), MiModifier(Modifier) {} bool operator!=(const AsmWriterOperand &Other) const { |