[llvm] r258488 - [TableGen] Remove the CGIOpNo from AsmWriterOperand as its not used for anything. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 21 21:59:37 PST 2016
Author: ctopper
Date: Thu Jan 21 23:59:37 2016
New Revision: 258488
URL: http://llvm.org/viewvc/llvm-project?rev=258488&view=rev
Log:
[TableGen] Remove the CGIOpNo from AsmWriterOperand as its not used for anything. NFC
Modified:
llvm/trunk/utils/TableGen/AsmWriterInst.cpp
llvm/trunk/utils/TableGen/AsmWriterInst.h
Modified: llvm/trunk/utils/TableGen/AsmWriterInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterInst.cpp?rev=258488&r1=258487&r2=258488&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterInst.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterInst.cpp Thu Jan 21 23:59:37 2016
@@ -162,14 +162,14 @@ AsmWriterInst::AsmWriterInst(const CodeG
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;
}
Modified: llvm/trunk/utils/TableGen/AsmWriterInst.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterInst.h?rev=258488&r1=258487&r2=258488&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterInst.h (original)
+++ llvm/trunk/utils/TableGen/AsmWriterInst.h Thu Jan 21 23:59:37 2016
@@ -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 {
More information about the llvm-commits
mailing list