Add erase() method for a single element.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-09-20 00:55:57 +00:00
parent 0efb50761d
commit 46d6a1aeb5
2 changed files with 6 additions and 4 deletions

View File

@ -58,9 +58,10 @@ public:
void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); }
iterator insert(iterator I, MachineInstr *M) { return Insts.insert(I, M); }
// erase - Remove the specified range from the instruction list. This does
// not delete in instructions removed.
// erase - Remove the specified element or range from the instruction list.
// These functions do not delete any instructions removed.
//
iterator erase(iterator I) { return Insts.erase(I); }
iterator erase(iterator I, iterator E) { return Insts.erase(I, E); }
MachineInstr *pop_back() {

View File

@ -58,9 +58,10 @@ public:
void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); }
iterator insert(iterator I, MachineInstr *M) { return Insts.insert(I, M); }
// erase - Remove the specified range from the instruction list. This does
// not delete in instructions removed.
// erase - Remove the specified element or range from the instruction list.
// These functions do not delete any instructions removed.
//
iterator erase(iterator I) { return Insts.erase(I); }
iterator erase(iterator I, iterator E) { return Insts.erase(I, E); }
MachineInstr *pop_back() {