summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-12-25 08:22:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-12-25 08:22:50 +0000
commitfba73aec7204803730f75df390c76cd56cdf2eb3 (patch)
tree67fe8d46893aedf8120d212de971e57a70b886ce /llvm/lib/AsmParser
parent87d263e870752d1bd724183bd88be47f6d2f6fed (diff)
downloadbcm5719-llvm-fba73aec7204803730f75df390c76cd56cdf2eb3.tar.gz
bcm5719-llvm-fba73aec7204803730f75df390c76cd56cdf2eb3.zip
[ADT] Add a generic concatenating iterator and range.
This allows both defining convenience iterator/range accessors on types which walk across N different independent ranges within the object, and more direct and simple usages with range based for loops such as shown in the unittest. The same facilities are used for both. They end up quite small and simple as it happens. I've also switched an iterator on `Module` to use this. I would like to add another convenience iterator that includes even more sequences as part of it and seeing this one already present motivated me to actually abstract it away and introduce a general utility. Differential Revision: https://reviews.llvm.org/D28093 llvm-svn: 290512
Diffstat (limited to 'llvm/lib/AsmParser')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud