From c3e4b141a31321d111164269c518f01e8ed8d904 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 21 Sep 2010 21:10:42 +0000 Subject: [PATCH] Add insertAfter. This should have accompanied previous check-in. llvm-svn: 114481 --- llvm/include/llvm/CodeGen/MachineBasicBlock.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h index 3cfc47ac4d84..bb7abdbd0160 100644 --- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h +++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h @@ -308,6 +308,9 @@ public: template void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); } iterator insert(iterator I, MachineInstr *M) { return Insts.insert(I, M); } + iterator insertAfter(iterator I, MachineInstr *M) { + return Insts.insertAfter(I, M); + } // erase - Remove the specified element or range from the instruction list. // These functions delete any instructions removed.