[llvm-commits] CVS: llvm/include/llvm/User.h

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 17 17:17:00 PDT 2003


Changes in directory llvm/include/llvm:

User.h updated: 1.18 -> 1.19

---
Log message:

Add new op_erase method


---
Diffs of the changes:

Index: llvm/include/llvm/User.h
diff -u llvm/include/llvm/User.h:1.18 llvm/include/llvm/User.h:1.19
--- llvm/include/llvm/User.h:1.18	Wed Jun 11 09:01:26 2003
+++ llvm/include/llvm/User.h	Tue Jun 17 17:15:55 2003
@@ -49,6 +49,11 @@
   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





More information about the llvm-commits mailing list