diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-08 18:52:47 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-08 18:52:47 +0000 |
commit | 0bbcd6bfd1a90c2aa7386a88ba9fc9aba47d03a7 (patch) | |
tree | 7ef5606cb740c6287e6b9d45a3d73a7ec62737ea /include/llvm/CodeGen/MachineBasicBlock.h | |
parent | 777a1cde665f22b75a23a46e51de4ecb6d169c22 (diff) |
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
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 3dee00da31..62657037d9 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<typename IT> void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); } |