mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +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:
parent
7279122e66
commit
b98a53f201
@ -239,8 +239,7 @@ public:
|
||||
// Support to rewrite a machine instruction in place: for now, simply
|
||||
// replace() and then set new operands with Set.*Operand methods below.
|
||||
//
|
||||
void replace(MachineOpCode Opcode, unsigned numOperands,
|
||||
OpCodeMask Mask = 0x0);
|
||||
void replace(MachineOpCode Opcode, unsigned numOperands);
|
||||
|
||||
//
|
||||
// The opcode.
|
||||
|
@ -16,10 +16,8 @@ MachineInstr::MachineInstr(MachineOpCode _opCode)
|
||||
}
|
||||
|
||||
// Constructor for instructions with variable #operands
|
||||
MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned numOperands/*,
|
||||
OpCodeMask OpCodeMask*/)
|
||||
: opCode(OpCode), opCodeMask(0/*OpCodeMask*/),
|
||||
operands(numOperands, MachineOperand()) {
|
||||
MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned numOperands)
|
||||
: opCode(OpCode), opCodeMask(0), operands(numOperands, MachineOperand()) {
|
||||
}
|
||||
|
||||
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.
|
||||
// The new operands must be set explicitly later.
|
||||
//
|
||||
void MachineInstr::replace(MachineOpCode Opcode, unsigned numOperands,
|
||||
OpCodeMask Mask) {
|
||||
void MachineInstr::replace(MachineOpCode Opcode, unsigned numOperands) {
|
||||
opCode = Opcode;
|
||||
opCodeMask = Mask;
|
||||
opCodeMask = 0;
|
||||
operands.clear();
|
||||
operands.resize(numOperands, MachineOperand());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user