Add erase() method for a single element.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 20 Sep 2002 00:55:57 +0000 (00:55 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 20 Sep 2002 00:55:57 +0000 (00:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3849 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineBasicBlock.h
include/llvm/CodeGen/MachineCodeForBasicBlock.h

index 51714bc3bebe212d620d9e14a33dfaddb17b6ba5..0f8a158c725bad2d64c5abe3c41a026ccf452181 100644 (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() {
index 51714bc3bebe212d620d9e14a33dfaddb17b6ba5..0f8a158c725bad2d64c5abe3c41a026ccf452181 100644 (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() {