diff options
author | Dale Johannesen <dalej@apple.com> | 2009-02-13 02:27:39 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-02-13 02:27:39 +0000 |
commit | e9f623e27c24cf58ed146c216b8ba41bc6d49724 (patch) | |
tree | 4f5dcbdc0e25b19d719ec0b0f59af80889e440c0 /llvm/lib/Target/PowerPC/PPCBranchSelector.cpp | |
parent | b851a7853a06178e3a5074e10b75c65923bae42b (diff) | |
download | bcm5719-llvm-e9f623e27c24cf58ed146c216b8ba41bc6d49724.tar.gz bcm5719-llvm-e9f623e27c24cf58ed146c216b8ba41bc6d49724.zip |
Remove refs to non-DebugLoc version of BuildMI from PowerPC.
llvm-svn: 64431
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCBranchSelector.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp index add37e11f3f..b95a502d918 100644 --- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp +++ b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp @@ -145,13 +145,14 @@ bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) { unsigned CRReg = I->getOperand(1).getReg(); MachineInstr *OldBranch = I; + DebugLoc dl = OldBranch->getDebugLoc(); // Jump over the uncond branch inst (i.e. $PC+8) on opposite condition. - BuildMI(MBB, I, TII->get(PPC::BCC)) + BuildMI(MBB, I, dl, TII->get(PPC::BCC)) .addImm(PPC::InvertPredicate(Pred)).addReg(CRReg).addImm(2); // Uncond branch to the real destination. - I = BuildMI(MBB, I, TII->get(PPC::B)).addMBB(Dest); + I = BuildMI(MBB, I, dl, TII->get(PPC::B)).addMBB(Dest); // Remove the old branch from the function. OldBranch->eraseFromParent(); |