summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-08 18:52:47 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-08 18:52:47 +0000
commit78d03b523fc275681bec88df11f04eee017ecbc7 (patch)
tree2c2824c66e4e3a1845a4f1b36209b6fd03e70858 /llvm/include
parent76b6426a8c9449a9e96e6752740509992f439e53 (diff)
downloadbcm5719-llvm-78d03b523fc275681bec88df11f04eee017ecbc7.tar.gz
bcm5719-llvm-78d03b523fc275681bec88df11f04eee017ecbc7.zip
Add a forwarding method pop_front() that allows you to delete instructions
from the beginning of a MBB. llvm-svn: 14074
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/MachineBasicBlock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
index 3dee00da319..62657037d90 100644
--- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/llvm/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); }
OpenPOWER on IntegriCloud