OSDN Git Service

Add insertAfter. This should have accompanied previous check-in.
authorDevang Patel <dpatel@apple.com>
Tue, 21 Sep 2010 21:10:42 +0000 (21:10 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 21 Sep 2010 21:10:42 +0000 (21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114481 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineBasicBlock.h

index 3cfc47a..bb7abdb 100644 (file)
@@ -308,6 +308,9 @@ public:
   template<typename IT>
   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.