diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-01-20 00:19:24 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-01-20 00:19:24 +0000 |
| commit | 91970b4ea2fc6747de5f37b25ce0f5f044b1d224 (patch) | |
| tree | be7d7798d5811bcab93eb01b0f3275bfd183918f /llvm/lib/Target/X86/X86InstrInfo.cpp | |
| parent | c0943d089fcbda18b40c532701ec7bd02961e6dd (diff) | |
| download | bcm5719-llvm-91970b4ea2fc6747de5f37b25ce0f5f044b1d224.tar.gz bcm5719-llvm-91970b4ea2fc6747de5f37b25ce0f5f044b1d224.zip | |
Move findDebugLoc somewhere more central. Fix
more cases where debug declarations affect
debug line info.
llvm-svn: 93953
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 8b9d0b80bab..9501ace8d37 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -2200,8 +2200,7 @@ bool X86InstrInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB, if (CSI.empty()) return false; - DebugLoc DL = DebugLoc::getUnknownLoc(); - if (MI != MBB.end()) DL = MI->getDebugLoc(); + DebugLoc DL = findDebugLoc(MI, MBB); bool is64Bit = TM.getSubtarget<X86Subtarget>().is64Bit(); bool isWin64 = TM.getSubtarget<X86Subtarget>().isTargetWin64(); @@ -2239,8 +2238,7 @@ bool X86InstrInfo::restoreCalleeSavedRegisters(MachineBasicBlock &MBB, if (CSI.empty()) return false; - DebugLoc DL = DebugLoc::getUnknownLoc(); - if (MI != MBB.end()) DL = MI->getDebugLoc(); + DebugLoc DL = findDebugLoc(MI, MBB); MachineFunction &MF = *MBB.getParent(); unsigned FPReg = RI.getFrameRegister(MF); |

