aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-28 21:02:40 +0000
committerChris Lattner <sabre@nondot.org>2002-10-28 21:02:40 +0000
commitb98a53f201fd3652f4b7e37d1f2cb3b9b0775d45 (patch)
tree39ccfbf459968b2d14056d349f8818e80416f3da /lib/CodeGen/MachineInstr.cpp
parent7279122e668816bed0d4f38d3392bbab0140fad0 (diff)
downloadexternal_llvm-b98a53f201fd3652f4b7e37d1f2cb3b9b0775d45.zip
external_llvm-b98a53f201fd3652f4b7e37d1f2cb3b9b0775d45.tar.gz
external_llvm-b98a53f201fd3652f4b7e37d1f2cb3b9b0775d45.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 85d3f1a..769e2d1 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -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());
}