projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d2ca6
)
Add a method to reserve space for operands
author
Chris Lattner
<sabre@nondot.org>
Thu, 9 Oct 2003 22:45:59 +0000
(22:45 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 9 Oct 2003 22:45:59 +0000
(22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8992
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/User.h
patch
|
blob
|
history
diff --git
a/include/llvm/User.h
b/include/llvm/User.h
index 2175ad0ae06bcb71717aa3418832b6f8b68cff4d..cc28d76ab3df47a92006ecd3094d0b67d32f32b2 100644
(file)
--- 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(); }