diff options
| author | Dale Johannesen <dalej@apple.com> | 2009-02-13 02:31:35 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2009-02-13 02:31:35 +0000 |
| commit | 215a9257666e146aaa954e2ecd581f46f28e1c30 (patch) | |
| tree | a7f39c6c5cde70cf25f9f365ec2a0b4f2dbb0d6c /llvm/lib/Target/Sparc/FPMover.cpp | |
| parent | 1efaaeaa69c9856d2379e6246bd8253bc0680aa7 (diff) | |
| download | bcm5719-llvm-215a9257666e146aaa954e2ecd581f46f28e1c30.tar.gz bcm5719-llvm-215a9257666e146aaa954e2ecd581f46f28e1c30.zip | |
Remove non-DebugLoc versions of buildMI from Sparc.
llvm-svn: 64435
Diffstat (limited to 'llvm/lib/Target/Sparc/FPMover.cpp')
| -rw-r--r-- | llvm/lib/Target/Sparc/FPMover.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/FPMover.cpp b/llvm/lib/Target/Sparc/FPMover.cpp index a542fc5198c..5faf2a1a763 100644 --- a/llvm/lib/Target/Sparc/FPMover.cpp +++ b/llvm/lib/Target/Sparc/FPMover.cpp @@ -84,6 +84,7 @@ bool FPMover::runOnMachineBasicBlock(MachineBasicBlock &MBB) { bool Changed = false; for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ) { MachineInstr *MI = I++; + DebugLoc dl = MI->getDebugLoc(); if (MI->getOpcode() == SP::FpMOVD || MI->getOpcode() == SP::FpABSD || MI->getOpcode() == SP::FpNEGD) { Changed = true; @@ -114,7 +115,7 @@ bool FPMover::runOnMachineBasicBlock(MachineBasicBlock &MBB) { DOUT << "FPMover: the modified instr is: " << *MI; // Insert copy for the other half of the double. if (DestDReg != SrcDReg) { - MI = BuildMI(MBB, I, TM.getInstrInfo()->get(SP::FMOVS), OddDestReg) + MI = BuildMI(MBB, I, dl, TM.getInstrInfo()->get(SP::FMOVS), OddDestReg) .addReg(OddSrcReg); DOUT << "FPMover: the inserted instr is: " << *MI; } |

