1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Remove more default arguments that are never used

llvm-svn: 4358
This commit is contained in:
Chris Lattner 2002-10-28 21:02:40 +00:00
parent 990e074c2e
commit 11f52470a0
2 changed files with 5 additions and 9 deletions

View File

@ -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.

View File

@ -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());
}