| Index: include/llvm/CodeGen/MachineInstrBuilder.h
|
| diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
|
| index 8859b6a019ea4359e33e29b8c6c26c8811b71d87..b38c4015a1bc19f58ac040a27bdff4ddf807edf6 100644
|
| --- a/include/llvm/CodeGen/MachineInstrBuilder.h
|
| +++ b/include/llvm/CodeGen/MachineInstrBuilder.h
|
| @@ -325,6 +325,21 @@ inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,
|
| return BuildMI(BB, MII, DL, MCID);
|
| }
|
|
|
| +// @LOCALMOD-BEGIN
|
| +/// BuildMI - This version of the builder inserts the newly-built
|
| +/// instruction before the given position in the given MachineBasicBlock,
|
| +/// does NOT take a destination register, and does not add implicit operands.
|
| +///
|
| +inline MachineInstrBuilder BuildMI_NoImp(MachineBasicBlock &BB,
|
| + MachineBasicBlock::iterator I,
|
| + DebugLoc DL,
|
| + const MCInstrDesc &MCID) {
|
| + MachineInstr *MI = BB.getParent()->CreateMachineInstr(MCID, DL, true);
|
| + BB.insert(I, MI);
|
| + return MachineInstrBuilder(*BB.getParent(), MI);
|
| +}
|
| +// @LOCALMOD-END
|
| +
|
| /// BuildMI - This version of the builder inserts the newly-built
|
| /// instruction at the end of the given MachineBasicBlock, and does NOT take a
|
| /// destination register.
|
|
|