From a200c8faf852f6caf386c592ec54c723d4b86b96 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Fri, 13 Feb 2009 02:35:20 +0000 Subject: [PATCH] Remove non-DebugLoc versions of BuildMI. "I got blisters on my fingers." git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64439 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineInstrBuilder.h | 26 ---------------------- 1 file changed, 26 deletions(-) diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 2ddf1523f08..d3a45aca521 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -119,15 +119,6 @@ inline MachineInstrBuilder BuildMI(MachineFunction &MF, /// instruction before the given position in the given MachineBasicBlock, and /// sets up the first operand as a destination virtual register. /// -inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB, - MachineBasicBlock::iterator I, - const TargetInstrDesc &TID, - unsigned DestReg) { - MachineInstr *MI = - BB.getParent()->CreateMachineInstr(TID, DebugLoc::getUnknownLoc()); - BB.insert(I, MI); - return MachineInstrBuilder(MI).addReg(DestReg, true); -} inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB, MachineBasicBlock::iterator I, DebugLoc DL, @@ -142,14 +133,6 @@ inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB, /// instruction before the given position in the given MachineBasicBlock, and /// does NOT take a destination register. /// -inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB, - MachineBasicBlock::iterator I, - const TargetInstrDesc &TID) { - MachineInstr *MI = - BB.getParent()->CreateMachineInstr(TID, DebugLoc::getUnknownLoc()); - BB.insert(I, MI); - return MachineInstrBuilder(MI); -} inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB, MachineBasicBlock::iterator I, DebugLoc DL, @@ -163,10 +146,6 @@ inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB, /// instruction at the end of the given MachineBasicBlock, and does NOT take a /// destination register. /// -inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, - const TargetInstrDesc &TID) { - return BuildMI(*BB, BB->end(), TID); -} inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, DebugLoc DL, const TargetInstrDesc &TID) { @@ -177,11 +156,6 @@ inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, /// instruction at the end of the given MachineBasicBlock, and sets up the first /// operand as a destination virtual register. /// -inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, - const TargetInstrDesc &TID, - unsigned DestReg) { - return BuildMI(*BB, BB->end(), TID, DestReg); -} inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, DebugLoc DL, const TargetInstrDesc &TID,