mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
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
This commit is contained in:
parent
d89b117850
commit
21c276d2fa
@ -189,6 +189,7 @@ public:
|
||||
inline iterator end() { return CalledFunctions.end(); }
|
||||
inline const_iterator begin() const { return CalledFunctions.begin(); }
|
||||
inline const_iterator end() const { return CalledFunctions.end(); }
|
||||
inline bool empty() const { return CalledFunctions.empty(); }
|
||||
inline unsigned size() const { return CalledFunctions.size(); }
|
||||
|
||||
// Subscripting operator - Return the i'th called function...
|
||||
|
@ -79,6 +79,7 @@ public:
|
||||
typedef std::vector<Loop*>::const_iterator iterator;
|
||||
iterator begin() const { return SubLoops.begin(); }
|
||||
iterator end() const { return SubLoops.end(); }
|
||||
bool empty() const { return SubLoops.empty(); }
|
||||
|
||||
/// getBlocks - Get a list of the basic blocks which make up this loop.
|
||||
///
|
||||
|
@ -110,6 +110,7 @@ public:
|
||||
return I->op_begin()+3; // Skip Function, BB, BB
|
||||
}
|
||||
arg_iterator arg_end() const { return I->op_end(); }
|
||||
bool arg_empty() const { return arg_end() == arg_begin(); }
|
||||
unsigned arg_size() const { return unsigned(arg_end() - arg_begin()); }
|
||||
|
||||
bool operator<(const CallSite &CS) const {
|
||||
|
Loading…
Reference in New Issue
Block a user