diff options
| author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-08-07 20:16:52 +0000 | 
|---|---|---|
| committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-08-07 20:16:52 +0000 | 
| commit | 4ac2975f5aa133ad339d0baf062b69373e1a3ddb (patch) | |
| tree | 60e2d2b82d2cdc847ade4a603a45aeeec250cea4 /llvm/lib | |
| parent | 5303bac986ec9c60aced0e607d18105d2c0a4a9b (diff) | |
| download | bcm5719-llvm-4ac2975f5aa133ad339d0baf062b69373e1a3ddb.tar.gz bcm5719-llvm-4ac2975f5aa133ad339d0baf062b69373e1a3ddb.zip  | |
added a default isDef arg to SetMachineOperand method - Ruchira
llvm-svn: 350
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index d3e468cc2eb..d09813272de 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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  | 

