summaryrefslogtreecommitdiff
path: root/include/llvm/User.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-13 03:29:26 +0000
committerChris Lattner <sabre@nondot.org>2003-10-13 03:29:26 +0000
commitd7db1fb944b9b115d19958ddb7997ab4787b2f18 (patch)
tree7aa0610ea0205947c5060337afd97bb8ddf1ab52 /include/llvm/User.h
parent6d3906be28a52546595749843449dd5bbb712f21 (diff)
downloadllvm-d7db1fb944b9b115d19958ddb7997ab4787b2f18.tar.gz
llvm-d7db1fb944b9b115d19958ddb7997ab4787b2f18.tar.bz2
llvm-d7db1fb944b9b115d19958ddb7997ab4787b2f18.tar.xz
Add new op_erase method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/User.h')
-rw-r--r--include/llvm/User.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h
index cc28d76ab3..42f9c86101 100644
--- a/include/llvm/User.h
+++ b/include/llvm/User.h
@@ -52,6 +52,9 @@ public:
/// operands list. Only use this if you know what you are doing.
///
op_iterator op_erase(op_iterator I) { return Operands.erase(I); }
+ op_iterator op_erase(op_iterator I, op_iterator E) {
+ return Operands.erase(I, E);
+ }
// dropAllReferences() - This function is in charge of "letting go" of all
// objects that this User refers to. This allows one to