mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-09 19:51:38 +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()) {
|
if (VarName.empty()) {
|
||||||
// Just a modifier, pass this into PrintSpecial.
|
// Just a modifier, pass this into PrintSpecial.
|
||||||
Operands.emplace_back("PrintSpecial", ~0U, ~0U, Modifier);
|
Operands.emplace_back("PrintSpecial", ~0U, Modifier);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, normal operand.
|
// Otherwise, normal operand.
|
||||||
unsigned OpNo = CGI.Operands.getOperandNamed(VarName);
|
unsigned OpNo = CGI.Operands.getOperandNamed(VarName);
|
||||||
CGIOperandList::OperandInfo OpInfo = CGI.Operands[OpNo];
|
CGIOperandList::OperandInfo OpInfo = CGI.Operands[OpNo];
|
||||||
|
|
||||||
unsigned MIOp = OpInfo.MIOperandNo;
|
unsigned MIOp = OpInfo.MIOperandNo;
|
||||||
Operands.emplace_back(OpInfo.PrinterMethodName, OpNo, MIOp, Modifier);
|
Operands.emplace_back(OpInfo.PrinterMethodName, MIOp, Modifier);
|
||||||
}
|
}
|
||||||
LastEmitted = VarEnd;
|
LastEmitted = VarEnd;
|
||||||
}
|
}
|
||||||
|
@ -41,10 +41,6 @@ namespace llvm {
|
|||||||
/// into the asm writer.
|
/// into the asm writer.
|
||||||
std::string Str;
|
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
|
/// MiOpNo - For isMachineInstrOperand, this is the operand number of the
|
||||||
/// machine instruction.
|
/// machine instruction.
|
||||||
unsigned MIOpNo;
|
unsigned MIOpNo;
|
||||||
@ -61,11 +57,10 @@ namespace llvm {
|
|||||||
: OperandType(op), Str(LitStr) {}
|
: OperandType(op), Str(LitStr) {}
|
||||||
|
|
||||||
AsmWriterOperand(const std::string &Printer,
|
AsmWriterOperand(const std::string &Printer,
|
||||||
unsigned _CGIOpNo,
|
|
||||||
unsigned _MIOpNo,
|
unsigned _MIOpNo,
|
||||||
const std::string &Modifier,
|
const std::string &Modifier,
|
||||||
OpType op = isMachineInstrOperand)
|
OpType op = isMachineInstrOperand)
|
||||||
: OperandType(op), Str(Printer), CGIOpNo(_CGIOpNo), MIOpNo(_MIOpNo),
|
: OperandType(op), Str(Printer), MIOpNo(_MIOpNo),
|
||||||
MiModifier(Modifier) {}
|
MiModifier(Modifier) {}
|
||||||
|
|
||||||
bool operator!=(const AsmWriterOperand &Other) const {
|
bool operator!=(const AsmWriterOperand &Other) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user