[llvm-commits] [llvm] r64439 - /llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Dale Johannesen
dalej at apple.com
Thu Feb 12 18:35:20 PST 2009
Author: johannes
Date: Thu Feb 12 20:35:20 2009
New Revision: 64439
URL: http://llvm.org/viewvc/llvm-project?rev=64439&view=rev
Log:
Remove non-DebugLoc versions of BuildMI.
"I got blisters on my fingers."
Modified:
llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h?rev=64439&r1=64438&r2=64439&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h Thu Feb 12 20:35:20 2009
@@ -121,15 +121,6 @@
///
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,
const TargetInstrDesc &TID,
unsigned DestReg) {
@@ -144,14 +135,6 @@
///
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,
const TargetInstrDesc &TID) {
MachineInstr *MI = BB.getParent()->CreateMachineInstr(TID, DL);
@@ -164,10 +147,6 @@
/// 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) {
return BuildMI(*BB, BB->end(), DL, TID);
@@ -178,11 +157,6 @@
/// 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,
unsigned DestReg) {
More information about the llvm-commits
mailing list