[llvm-commits] [llvm] r114481 - /llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h

Devang Patel dpatel at apple.com
Tue Sep 21 14:10:42 PDT 2010


Author: dpatel
Date: Tue Sep 21 16:10:42 2010
New Revision: 114481

URL: http://llvm.org/viewvc/llvm-project?rev=114481&view=rev
Log:
Add insertAfter. This should have accompanied previous check-in.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h?rev=114481&r1=114480&r2=114481&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h Tue Sep 21 16:10:42 2010
@@ -308,6 +308,9 @@
   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.





More information about the llvm-commits mailing list