From: Brian Gaeke Date: Tue, 8 Jun 2004 18:52:47 +0000 (+0000) Subject: Add a forwarding method pop_front() that allows you to delete instructions X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0bbcd6bfd1a90c2aa7386a88ba9fc9aba47d03a7;p=oota-llvm.git 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 --- 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); }