Add new op_erase method
authorChris Lattner <sabre@nondot.org>
Tue, 17 Jun 2003 22:15:55 +0000 (22:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Jun 2003 22:15:55 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6757 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/User.h

index 751cdaf5ff92ea2f0dd2a350dedffbb69e4a5305..bf398f4c80d3e83c32c6cdcaf1e928e523cc604a 100644 (file)
@@ -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