Remove non-DebugLoc versions of BuildMI.
authorDale Johannesen <dalej@apple.com>
Fri, 13 Feb 2009 02:35:20 +0000 (02:35 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 13 Feb 2009 02:35:20 +0000 (02:35 +0000)
"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

index 2ddf1523f08cff6ce2f558f33fc751b906fb624c..d3a45aca521493d4d206855312ac4113ddaeb023 100644 (file)
@@ -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,