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 | 536a2f1f8467a17f6d145bd83f25faae1f689839 (patch) | |
| tree | 1d34fa0e784456f47e6d7172eb311c6c5ab17c8f /lib/Target/PowerPC/PPCInstrInfo.cpp | |
| parent | 8a43d98644e4c847cdef88c9658a4d821cc72473 (diff) | |
Remove refs to non-DebugLoc version of BuildMI from PowerPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.cpp')
| -rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index eac15bded5..50c80c4ddd 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -292,6 +292,8 @@ unsigned PPCInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond) const { + // FIXME this should probably have a DebugLoc argument + DebugLoc dl = DebugLoc::getUnknownLoc(); // Shouldn't be a fall through. assert(TBB && "InsertBranch must not be told to insert a fallthrough"); assert((Cond.size() == 2 || Cond.size() == 0) && @@ -300,17 +302,17 @@ PPCInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, // One-way branch. if (FBB == 0) { if (Cond.empty()) // Unconditional branch - BuildMI(&MBB, get(PPC::B)).addMBB(TBB); + BuildMI(&MBB, dl, get(PPC::B)).addMBB(TBB); else // Conditional branch - BuildMI(&MBB, get(PPC::BCC)) + BuildMI(&MBB, dl, get(PPC::BCC)) .addImm(Cond[0].getImm()).addReg(Cond[1].getReg()).addMBB(TBB); return 1; } // Two-way Conditional Branch. - BuildMI(&MBB, get(PPC::BCC)) + BuildMI(&MBB, dl, get(PPC::BCC)) .addImm(Cond[0].getImm()).addReg(Cond[1].getReg()).addMBB(TBB); - BuildMI(&MBB, get(PPC::B)).addMBB(FBB); + BuildMI(&MBB, dl, get(PPC::B)).addMBB(FBB); return 2; } |
