ADT: Do not inherit from std::iterator in ilist_iterator
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 3 Sep 2016 02:27:35 +0000 (02:27 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 3 Sep 2016 02:27:35 +0000 (02:27 +0000)
commit4e229a7c0a261614dd9ed2a473dde32e8ff69925
tree6e65c9a681793c35d1e9f38b3181cddfeaa527d8
parent3453d51c51b1ea7a9dafaa1b490b76d5ed0c2f7d
ADT: Do not inherit from std::iterator in ilist_iterator

Inheriting from std::iterator uses more boiler-plate than manual
typedefs.  Avoid that in both ilist_iterator and
MachineInstrBundleIterator.

This has the side effect of removing ilist_iterator from certain ADL
lookups in namespace std; calls to std::next need to be qualified by
"std::" that didn't have to before.  The one case of this in-tree was
operating on a temporary, so I used the more compact operator++.

llvm-svn: 280570
llvm/include/llvm/ADT/ilist_iterator.h
llvm/include/llvm/CodeGen/MachineInstrBundleIterator.h
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp