llvm.org GIT mirror llvm / 21c276d
Add empty() member functions to a few container-like classes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42487 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
3 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
188188 inline iterator end() { return CalledFunctions.end(); }
189189 inline const_iterator begin() const { return CalledFunctions.begin(); }
190190 inline const_iterator end() const { return CalledFunctions.end(); }
191 inline bool empty() const { return CalledFunctions.empty(); }
191192 inline unsigned size() const { return CalledFunctions.size(); }
192193
193194 // Subscripting operator - Return the i'th called function...
7878 typedef std::vector::const_iterator iterator;
7979 iterator begin() const { return SubLoops.begin(); }
8080 iterator end() const { return SubLoops.end(); }
81 bool empty() const { return SubLoops.empty(); }
8182
8283 /// getBlocks - Get a list of the basic blocks which make up this loop.
8384 ///
109109 return I->op_begin()+3; // Skip Function, BB, BB
110110 }
111111 arg_iterator arg_end() const { return I->op_end(); }
112 bool arg_empty() const { return arg_end() == arg_begin(); }
112113 unsigned arg_size() const { return unsigned(arg_end() - arg_begin()); }
113114
114115 bool operator<(const CallSite &CS) const {