[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 28 15:03:02 PST 2002
Changes in directory llvm/lib/CodeGen:
MachineInstr.cpp updated: 1.53 -> 1.54
---
Log message:
Remove more default arguments that are never used
---
Diffs of the changes:
Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.53 llvm/lib/CodeGen/MachineInstr.cpp:1.54
--- llvm/lib/CodeGen/MachineInstr.cpp:1.53 Mon Oct 28 14:59:49 2002
+++ llvm/lib/CodeGen/MachineInstr.cpp Mon Oct 28 15:02:40 2002
@@ -16,10 +16,8 @@
}
// 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 @@
// 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());
}
More information about the llvm-commits
mailing list