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
This commit is contained in:
Chris Lattner 2003-10-09 22:45:59 +00:00
parent 35d2ca672b
commit 97622b1751

View File

@ -41,6 +41,8 @@ public:
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(); }