[Support] Implement llvm::Registry::iterator via llvm_iterator_facade
authorIlya Biryukov <ibiryukov@google.com>
Fri, 18 Jan 2019 17:30:49 +0000 (17:30 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Fri, 18 Jan 2019 17:30:49 +0000 (17:30 +0000)
commit0cddc39ffc8f02580791e3fa33ec3d1a9e795746
tree9bb5efcc62a21c4408c5e3497b8ed7e5e8499e72
parent826ef59568af112d4eec30951f49df7f59789af1
[Support] Implement llvm::Registry::iterator via llvm_iterator_facade

Summary:
Among other things, this allows using STL algorithms like 'find_if' over
llvm::Registry.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: kristina, llvm-commits

Differential Revision: https://reviews.llvm.org/D56854

llvm-svn: 351566
llvm/include/llvm/Support/Registry.h