aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-10-01 16:01:23 +0000
committerDan Gohman <djg@cray.com>2007-10-01 16:01:23 +0000
commitce140acc98f6bd98633d58083b62cbd8f19f5afd (patch)
treee207902088791d6d41ce8f9138fc47c157e7b5dc /include/llvm/Support
parentf37b54b475394ed08f4c1edb42dc765df9189688 (diff)
downloadexternal_llvm-ce140acc98f6bd98633d58083b62cbd8f19f5afd.zip
external_llvm-ce140acc98f6bd98633d58083b62cbd8f19f5afd.tar.gz
external_llvm-ce140acc98f6bd98633d58083b62cbd8f19f5afd.tar.bz2
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
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/CallSite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h
index e14caad..fec7efc 100644
--- a/include/llvm/Support/CallSite.h
+++ b/include/llvm/Support/CallSite.h
@@ -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 {