diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-17 22:15:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-17 22:15:55 +0000 |
commit | a599f871af616133121f3ef81db85e4dccf684a4 (patch) | |
tree | da5610aed449d38664c95696e85103de053f9a11 | |
parent | 57ec659810847be717059270aef647319f6498f5 (diff) |
Add new op_erase method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6757 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/User.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h index 751cdaf5ff..bf398f4c80 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -49,6 +49,11 @@ public: inline op_iterator op_end() { return Operands.end(); } inline const_op_iterator op_end() const { return Operands.end(); } + /// op_erase - This method is used to remove one of the arguments from the + /// operands list. Only use this if you know what you are doing. + /// + op_iterator op_erase(op_iterator I) { return Operands.erase(I); } + // dropAllReferences() - This function is in charge of "letting go" of all // objects that this User refers to. This allows one to // 'delete' a whole class at a time, even though there may be circular |