diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-09 22:45:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-09 22:45:59 +0000 |
commit | 97622b1751228fa0481a8b1a22aa364b396c5931 (patch) | |
tree | 36c5841f061576593a6f14faf065ff93c8de4477 /include | |
parent | 35d2ca672bb400ee69dbbe0fef362e4e9a57e5e4 (diff) | |
download | external_llvm-97622b1751228fa0481a8b1a22aa364b396c5931.zip external_llvm-97622b1751228fa0481a8b1a22aa364b396c5931.tar.gz external_llvm-97622b1751228fa0481a8b1a22aa364b396c5931.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/User.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h index 2175ad0..cc28d76 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -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(); } |