diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-04 17:52:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-04 17:52:23 +0000 |
commit | 10d6341618d792accb16a959a8481cbed4c7daec (patch) | |
tree | f46455c3468146bd3a6f81f1585e38d70a8ae610 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | fb2969205596dd8f0c5995e446f01a7b918fa4cf (diff) | |
download | bcm5719-llvm-10d6341618d792accb16a959a8481cbed4c7daec.tar.gz bcm5719-llvm-10d6341618d792accb16a959a8481cbed4c7daec.zip |
Move some methods out of MachineInstr into MachineOperand
llvm-svn: 28102
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index 037928fb315..d71f357990f 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -136,8 +136,8 @@ MachineInstr *PPCInstrInfo::commuteInstruction(MachineInstr *MI) const { // Swap op1/op2 unsigned Reg1 = MI->getOperand(1).getReg(); unsigned Reg2 = MI->getOperand(2).getReg(); - MI->SetMachineOperandReg(2, Reg1); - MI->SetMachineOperandReg(1, Reg2); + MI->getOperand(2).setReg(Reg1); + MI->getOperand(1).setReg(Reg2); // Swap the mask around. unsigned MB = MI->getOperand(4).getImmedValue(); |