Add a forwarding method pop_front() that allows you to delete instructions
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 8 Jun 2004 18:52:47 +0000 (18:52 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 8 Jun 2004 18:52:47 +0000 (18:52 +0000)
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

index 3dee00da3192af4a393624150f0e59864cf15ffa..62657037d905fe65abe401c3b3f22ccd63f02975 100644 (file)
@@ -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<typename IT>
   void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); }