Add a splice member function which accepts a range instead of a
authorDan Gohman <gohman@apple.com>
Sat, 17 Oct 2009 00:28:24 +0000 (00:28 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 17 Oct 2009 00:28:24 +0000 (00:28 +0000)
single iterator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84294 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFunction.h

index ba831cab172534a0676bbe8f78eb6a69b964feb7..40260ea693f02f552a998bd8e8cf544329d771a8 100644 (file)
@@ -267,6 +267,9 @@ public:
   void splice(iterator InsertPt, iterator MBBI) {
     BasicBlocks.splice(InsertPt, BasicBlocks, MBBI);
   }
+  void splice(iterator InsertPt, iterator MBBI, iterator MBBE) {
+    BasicBlocks.splice(InsertPt, BasicBlocks, MBBI, MBBE);
+  }
 
   void remove(iterator MBBI) {
     BasicBlocks.remove(MBBI);