summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-17 00:28:24 +0000
committerDan Gohman <gohman@apple.com>2009-10-17 00:28:24 +0000
commitf920463aae34ae3d39d38bf7c6af7ec7ca7b30fe (patch)
tree1adfc25fb4d12828f7a2a00c18f05b9c6d4f1262
parent12bfa3859dd0ef5c5871eec6268f98675e1dd844 (diff)
downloadbcm5719-llvm-f920463aae34ae3d39d38bf7c6af7ec7ca7b30fe.tar.gz
bcm5719-llvm-f920463aae34ae3d39d38bf7c6af7ec7ca7b30fe.zip
Add a splice member function which accepts a range instead of a
single iterator. llvm-svn: 84294
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index ba831cab172..40260ea693f 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud