Changes in directory llvm/lib/Target/X86:

X86RegisterInfo.cpp updated: 1.147 -> 1.148
---
Log message:

Move some methods out of MachineInstr into MachineOperand


---
Diffs of the changes:  (+2 -2)

 X86RegisterInfo.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.147 
llvm/lib/Target/X86/X86RegisterInfo.cpp:1.148
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.147       Thu May  4 12:21:20 2006
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp     Thu May  4 12:52:23 2006
@@ -665,7 +665,7 @@
 
   // This must be part of a four operand memory reference.  Replace the
   // FrameIndex with base register with EBP.  Add add an offset to the offset.
-  MI.SetMachineOperandReg(i, hasFP(MF) ? X86::EBP : X86::ESP);
+  MI.getOperand(i).ChangeToRegister(hasFP(MF) ? X86::EBP : X86::ESP);
 
   // Now add the frame object offset to the offset from EBP.
   int Offset = MF.getFrameInfo()->getObjectOffset(FrameIndex) +
@@ -676,7 +676,7 @@
   else
     Offset += 4;  // Skip the saved EBP
 
-  MI.SetMachineOperandConst(i+3, MachineOperand::MO_Immediate, Offset);
+  MI.getOperand(i+3).ChangeToImmediate(Offset);
 }
 
 void



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to