diff options
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index d3e468cc2e..d09813272d 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -42,27 +42,30 @@ MachineInstr::MachineInstr(MachineOpCode _opCode, void MachineInstr::SetMachineOperand(unsigned int i, MachineOperand::MachineOperandType operandType, - Value* _val) + Value* _val, bool isdef=false) { assert(i < operands.size()); operands[i].Initialize(operandType, _val); + operands[i].isDef = isdef; } void MachineInstr::SetMachineOperand(unsigned int i, MachineOperand::MachineOperandType operandType, - int64_t intValue) + int64_t intValue, bool isdef=false) { assert(i < operands.size()); operands[i].InitializeConst(operandType, intValue); + operands[i].isDef = isdef; } void MachineInstr::SetMachineOperand(unsigned int i, - unsigned int regNum) + unsigned int regNum, bool isdef=false) { assert(i < operands.size()); operands[i].InitializeReg(regNum); + operands[i].isDef = isdef; } void |