From 0bbcd6bfd1a90c2aa7386a88ba9fc9aba47d03a7 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 8 Jun 2004 18:52:47 +0000 Subject: [PATCH] Add a forwarding method pop_front() that allows you to delete instructions from the beginning of a MBB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14074 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineBasicBlock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 3dee00da319..62657037d90 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -146,6 +146,7 @@ public: /// it returns end() iterator getFirstTerminator(); + void pop_front() { Insts.pop_front(); } void push_back(MachineInstr *MI) { Insts.push_back(MI); } template void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); }