From faa510726f4b40aa4495e60e4d341c6467e3fb01 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 26 Apr 2007 19:00:32 +0000 Subject: Rename findRegisterUseOperand to findRegisterUseOperandIdx to avoid confusion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36483 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/VirtRegMap.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/CodeGen/VirtRegMap.cpp') diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 482e336f87..9ae38ac901 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -764,7 +764,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM, // necessary. bool WasKill = false; if (SSMI) { - int UIdx = SSMI->findRegisterUseOperand(PhysReg, true); + int UIdx = SSMI->findRegisterUseOperandIdx(PhysReg, true); if (UIdx != -1) { MachineOperand &MOK = SSMI->getOperand(UIdx); WasKill = MOK.isKill(); @@ -849,7 +849,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM, // necessary. bool WasKill = false; if (SSMI) { - int UIdx = SSMI->findRegisterUseOperand(PhysReg, true); + int UIdx = SSMI->findRegisterUseOperandIdx(PhysReg, true); if (UIdx != -1) { MachineOperand &MOK = SSMI->getOperand(UIdx); WasKill = MOK.isKill(); @@ -859,7 +859,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM, MachineInstr *CopyMI = prior(MII); if (WasKill) { // Transfer kill to the next use. - int UIdx = CopyMI->findRegisterUseOperand(PhysReg); + int UIdx = CopyMI->findRegisterUseOperandIdx(PhysReg); assert(UIdx != -1); MachineOperand &MOU = CopyMI->getOperand(UIdx); MOU.setIsKill(); @@ -957,7 +957,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM, // extended. Remove its kill. bool WasKill = false; if (SSMI) { - int UIdx = SSMI->findRegisterUseOperand(InReg, true); + int UIdx = SSMI->findRegisterUseOperandIdx(InReg, true); if (UIdx != -1) { MachineOperand &MOK = SSMI->getOperand(UIdx); WasKill = MOK.isKill(); @@ -967,7 +967,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM, if (NextMII != MBB.end()) { // If NextMII uses InReg and the use is not a two address // operand, mark it killed. - int UIdx = NextMII->findRegisterUseOperand(InReg); + int UIdx = NextMII->findRegisterUseOperandIdx(InReg); if (UIdx != -1) { MachineOperand &MOU = NextMII->getOperand(UIdx); if (WasKill) { -- cgit v1.2.3