Add new op_erase method
authorChris Lattner <sabre@nondot.org>
Mon, 13 Oct 2003 03:29:26 +0000 (03:29 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Oct 2003 03:29:26 +0000 (03:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9068 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/User.h

index cc28d76ab3df47a92006ecd3094d0b67d32f32b2..42f9c861016609cd63985474f1f4959ba93ef93e 100644 (file)
@@ -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