llvm.org GIT mirror llvm / 97622b1
Add a method to reserve space for operands git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8992 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3939 //
4040 typedef std::vector::iterator op_iterator;
4141 typedef std::vector::const_iterator const_op_iterator;
42
43 void op_reserve(unsigned NumElements) { Operands.reserve(NumElements); }
4244
4345 inline op_iterator op_begin() { return Operands.begin(); }
4446 inline const_op_iterator op_begin() const { return Operands.begin(); }