summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrInfo.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-01-20 21:36:02 +0000
committerDale Johannesen <dalej@apple.com>2010-01-20 21:36:02 +0000
commitc5db59981395b018506d04c1e0e39c7f72c7470d (patch)
treed17916e68058f8b864cc7879470d24a173bb7af0 /llvm/lib/Target/X86/X86InstrInfo.cpp
parent720d00553aaaac6ea2457bdc76a09edc7f1b593c (diff)
downloadbcm5719-llvm-c5db59981395b018506d04c1e0e39c7f72c7470d.tar.gz
bcm5719-llvm-c5db59981395b018506d04c1e0e39c7f72c7470d.zip
make findDebugLoc a class method
llvm-svn: 94032
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index 9501ace8d37..e6430483569 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -2200,7 +2200,7 @@ bool X86InstrInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB,
if (CSI.empty())
return false;
- DebugLoc DL = findDebugLoc(MI, MBB);
+ DebugLoc DL = MBB.findDebugLoc(MI);
bool is64Bit = TM.getSubtarget<X86Subtarget>().is64Bit();
bool isWin64 = TM.getSubtarget<X86Subtarget>().isTargetWin64();
@@ -2238,7 +2238,7 @@ bool X86InstrInfo::restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
if (CSI.empty())
return false;
- DebugLoc DL = findDebugLoc(MI, MBB);
+ DebugLoc DL = MBB.findDebugLoc(MI);
MachineFunction &MF = *MBB.getParent();
unsigned FPReg = RI.getFrameRegister(MF);
OpenPOWER on IntegriCloud