From 1c09f96ebef0c02b3d2dbe79f99ecd272e934fc0 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 22 Jan 2016 05:59:37 +0000 Subject: [PATCH] [TableGen] Remove the CGIOpNo from AsmWriterOperand as its not used for anything. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258488 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/AsmWriterInst.cpp | 4 ++-- utils/TableGen/AsmWriterInst.h | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/utils/TableGen/AsmWriterInst.cpp b/utils/TableGen/AsmWriterInst.cpp index f83b632cfd8..2c19e5d663d 100644 --- a/utils/TableGen/AsmWriterInst.cpp +++ b/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/utils/TableGen/AsmWriterInst.h b/utils/TableGen/AsmWriterInst.h index 16204173024..ce3832f9d90 100644 --- a/utils/TableGen/AsmWriterInst.h +++ b/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 {