mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
[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
This commit is contained in:
parent
860ed4e8ad
commit
1c09f96ebe
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user