diff options
author | Zachary Turner <zturner@google.com> | 2017-03-21 20:27:36 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-21 20:27:36 +0000 |
commit | e0c2fec12594e3b829a3646b0be34e4b0e6f817b (patch) | |
tree | 932c881a2315a6cf3c16dc2eb1d6baa9dc84c10a /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py | |
parent | adb561d7284b88891bb0f44293b6af56ff8d4662 (diff) | |
download | bcm5719-llvm-e0c2fec12594e3b829a3646b0be34e4b0e6f817b.tar.gz bcm5719-llvm-e0c2fec12594e3b829a3646b0be34e4b0e6f817b.zip |
Improve StringMap iterator support.
StringMap's iterators did not support LLVM's
iterator_facade_base, which made it unusable in various
STL algorithms or with some of our range adapters.
This patch makes both StringMapConstIterator as well as
StringMapIterator support iterator_facade_base.
With this in place, it is easy to make an iterator adapter
that iterates over only keys, and whose value_type is
StringRef. So I add StringMapKeyIterator as well, and
provide the method StringMap::keys() that returns a
range that can be iterated.
Differential Revision: https://reviews.llvm.org/D31171
llvm-svn: 298436
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions