[llvm-commits] CVS: llvm/include/llvm/User.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 9 17:47:03 PDT 2003
Changes in directory llvm/include/llvm:
User.h updated: 1.22 -> 1.23
---
Log message:
Add a method to reserve space for operands
---
Diffs of the changes: (+2 -0)
Index: llvm/include/llvm/User.h
diff -u llvm/include/llvm/User.h:1.22 llvm/include/llvm/User.h:1.23
--- llvm/include/llvm/User.h:1.22 Mon Oct 6 12:36:49 2003
+++ llvm/include/llvm/User.h Thu Oct 9 17:45:59 2003
@@ -41,6 +41,8 @@
typedef std::vector<Use>::iterator op_iterator;
typedef std::vector<Use>::const_iterator const_op_iterator;
+ void op_reserve(unsigned NumElements) { Operands.reserve(NumElements); }
+
inline op_iterator op_begin() { return Operands.begin(); }
inline const_op_iterator op_begin() const { return Operands.begin(); }
inline op_iterator op_end() { return Operands.end(); }
More information about the llvm-commits
mailing list