diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-20 00:55:57 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-20 00:55:57 +0000 |
commit | 46d6a1aeb549a2e4ccd982a1a2cefda541d79c52 (patch) | |
tree | 411c1b8d8e1ef7266ea9a5871bd493afbfcc6e5f /include/llvm/CodeGen | |
parent | 0efb50761dfb9b925888f94d7eadaad12249c1f6 (diff) | |
download | external_llvm-46d6a1aeb549a2e4ccd982a1a2cefda541d79c52.zip external_llvm-46d6a1aeb549a2e4ccd982a1a2cefda541d79c52.tar.gz external_llvm-46d6a1aeb549a2e4ccd982a1a2cefda541d79c52.tar.bz2 |
Add erase() method for a single element.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 5 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineCodeForBasicBlock.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 51714bc..0f8a158 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -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() { diff --git a/include/llvm/CodeGen/MachineCodeForBasicBlock.h b/include/llvm/CodeGen/MachineCodeForBasicBlock.h index 51714bc..0f8a158 100644 --- a/include/llvm/CodeGen/MachineCodeForBasicBlock.h +++ b/include/llvm/CodeGen/MachineCodeForBasicBlock.h @@ -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() { |