aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-19 22:04:19 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-19 22:04:19 +0000
commitcafe614035c8db70eb5da96dba00696db381674f (patch)
tree2c2368ab441f70cb0b5cfee446554192f2ae3cba /include/llvm/ADT
parentcbe003b243c5aa0ca7ec3872164a5e53950ba44f (diff)
downloadexternal_llvm-cafe614035c8db70eb5da96dba00696db381674f.zip
external_llvm-cafe614035c8db70eb5da96dba00696db381674f.tar.gz
external_llvm-cafe614035c8db70eb5da96dba00696db381674f.tar.bz2
Add IntervalMap::const_iterator::atBegin().
It returns true when operator--() can be called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/IntervalMap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/IntervalMap.h b/include/llvm/ADT/IntervalMap.h
index f28ebf3..1230e8f 100644
--- a/include/llvm/ADT/IntervalMap.h
+++ b/include/llvm/ADT/IntervalMap.h
@@ -1335,6 +1335,9 @@ public:
/// valid - Return true if the current position is valid, false for end().
bool valid() const { return path.valid(); }
+ /// atBegin - Return true if the current position is the first map entry.
+ bool atBegin() const { return path.atBegin(); }
+
/// start - Return the beginning of the current interval.
const KeyT &start() const { return unsafeStart(); }