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 | 908ffe346d310adb016a6e101759d3b501eaa98c (patch) | |
tree | 3981e35e45eb2bacd2496c5598debdffced07bc7 /llvm | |
parent | 32cbae3320a3efb637a6359d956f38803264642d (diff) | |
download | bcm5719-llvm-908ffe346d310adb016a6e101759d3b501eaa98c.tar.gz bcm5719-llvm-908ffe346d310adb016a6e101759d3b501eaa98c.zip |
Add new op_erase method
llvm-svn: 6757
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/User.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/User.h b/llvm/include/llvm/User.h index 751cdaf5ff9..bf398f4c80d 100644 --- a/llvm/include/llvm/User.h +++ b/llvm/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 |