mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Remove more default arguments that are never used
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -239,8 +239,7 @@ public:
|
|||||||
// Support to rewrite a machine instruction in place: for now, simply
|
// Support to rewrite a machine instruction in place: for now, simply
|
||||||
// replace() and then set new operands with Set.*Operand methods below.
|
// replace() and then set new operands with Set.*Operand methods below.
|
||||||
//
|
//
|
||||||
void replace(MachineOpCode Opcode, unsigned numOperands,
|
void replace(MachineOpCode Opcode, unsigned numOperands);
|
||||||
OpCodeMask Mask = 0x0);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// The opcode.
|
// The opcode.
|
||||||
|
@@ -16,10 +16,8 @@ MachineInstr::MachineInstr(MachineOpCode _opCode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Constructor for instructions with variable #operands
|
// Constructor for instructions with variable #operands
|
||||||
MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned numOperands/*,
|
MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned numOperands)
|
||||||
OpCodeMask OpCodeMask*/)
|
: opCode(OpCode), opCodeMask(0), operands(numOperands, MachineOperand()) {
|
||||||
: opCode(OpCode), opCodeMask(0/*OpCodeMask*/),
|
|
||||||
operands(numOperands, MachineOperand()) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MachineInstr::MachineInstr(MachineOpCode Opcode, unsigned numOperands,
|
MachineInstr::MachineInstr(MachineOpCode Opcode, unsigned numOperands,
|
||||||
@@ -41,10 +39,9 @@ bool MachineInstr::OperandsComplete() const {
|
|||||||
// This only resets the size of the operand vector and initializes it.
|
// This only resets the size of the operand vector and initializes it.
|
||||||
// The new operands must be set explicitly later.
|
// The new operands must be set explicitly later.
|
||||||
//
|
//
|
||||||
void MachineInstr::replace(MachineOpCode Opcode, unsigned numOperands,
|
void MachineInstr::replace(MachineOpCode Opcode, unsigned numOperands) {
|
||||||
OpCodeMask Mask) {
|
|
||||||
opCode = Opcode;
|
opCode = Opcode;
|
||||||
opCodeMask = Mask;
|
opCodeMask = 0;
|
||||||
operands.clear();
|
operands.clear();
|
||||||
operands.resize(numOperands, MachineOperand());
|
operands.resize(numOperands, MachineOperand());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user