[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeForBasicBlock.h
Vikram Adve
vadve at psmith.cs.uiuc.edu
Thu Sep 19 19:57:01 PDT 2002
Changes in directory llvm/include/llvm/CodeGen:
MachineCodeForBasicBlock.h updated: 1.1 -> 1.2
---
Log message:
Add erase() method for a single element.
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineCodeForBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineCodeForBasicBlock.h:1.1 llvm/include/llvm/CodeGen/MachineCodeForBasicBlock.h:1.2
--- llvm/include/llvm/CodeGen/MachineCodeForBasicBlock.h:1.1 Mon Jul 8 17:40:34 2002
+++ llvm/include/llvm/CodeGen/MachineCodeForBasicBlock.h Thu Sep 19 19:55:57 2002
@@ -58,9 +58,10 @@
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() {
More information about the llvm-commits
mailing list