Add IntervalMap::iterator::set{Start,Stop,Value} methods that allow limited
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 3 Dec 2010 19:02:00 +0000 (19:02 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 3 Dec 2010 19:02:00 +0000 (19:02 +0000)
commit7a26aca73ff2c8c4cb3205a776cc6743949b1fb7
tree6561ccbb2d4dab67d361f844e1a59cc2038d8d79
parentb531f45a9dca5a2b8cc25d98f2fa9f0ab5955820
Add IntervalMap::iterator::set{Start,Stop,Value} methods that allow limited
editing of the current interval.

These methods may cause coalescing, there are corresponding set*Unchecked
methods for editing without coalescing. The non-coalescing methods are useful
for applying monotonic transforms to all keys or values in a map without
accidentally coalescing transformed and untransformed intervals.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120829 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/IntervalMap.h
lib/Support/IntervalMap.cpp
unittests/ADT/IntervalMapTest.cpp