From b68d67caf3d8e73e92df932f46b67c87e7eb17c2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 17 Oct 2009 00:28:24 +0000 Subject: [PATCH] Add a splice member function which accepts a range instead of a single iterator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84294 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFunction.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index ba831cab172..40260ea693f 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -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); -- 2.34.1