diff options
Diffstat (limited to 'include/llvm/User.h')
-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(); } |