diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-08-27 06:41:46 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-08-27 06:41:46 +0000 |
commit | f0891be8bdbeeadb39da5575273b6645755fa383 (patch) | |
tree | 344541d698e7fdc4ee3f8a118d3590da66510e6d /include/llvm/Support | |
parent | 199ba42cbf56b2fc9c708edb4f08f97dd99ddd49 (diff) | |
download | external_llvm-f0891be8bdbeeadb39da5575273b6645755fa383.zip external_llvm-f0891be8bdbeeadb39da5575273b6645755fa383.tar.gz external_llvm-f0891be8bdbeeadb39da5575273b6645755fa383.tar.bz2 |
Clean up the minor mess I caused with removing iterator.h. I shall take care of 80-col violations and the FIXME later. (Thanks goodness that I live in another continent, so the monkeypox did not strike me :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/CFG.h | 9 | ||||
-rw-r--r-- | include/llvm/Support/GetElementPtrTypeIterator.h | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index b0b857b..ca181c5 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -18,7 +18,6 @@ #include "llvm/ADT/GraphTraits.h" #include "llvm/Function.h" #include "llvm/InstrTypes.h" -#include "llvm/ADT/iterator.h" namespace llvm { @@ -27,8 +26,8 @@ namespace llvm { //===--------------------------------------------------------------------===// template <class _Ptr, class _USE_iterator> // Predecessor Iterator -class PredIterator : public forward_iterator<_Ptr, ptrdiff_t> { - typedef forward_iterator<_Ptr, ptrdiff_t> super; +class PredIterator : public std::iterator<std::forward_iterator_tag, _Ptr, ptrdiff_t> { + typedef std::iterator<std::forward_iterator_tag, _Ptr, ptrdiff_t> super; _USE_iterator It; public: typedef PredIterator<_Ptr,_USE_iterator> _Self; @@ -85,10 +84,10 @@ inline pred_const_iterator pred_end(const BasicBlock *BB) { //===--------------------------------------------------------------------===// template <class Term_, class BB_> // Successor Iterator -class SuccIterator : public bidirectional_iterator<BB_, ptrdiff_t> { +class SuccIterator : public std::iterator<std::bidirectional_iterator_tag, BB_, ptrdiff_t> { const Term_ Term; unsigned idx; - typedef bidirectional_iterator<BB_, ptrdiff_t> super; + typedef std::iterator<std::bidirectional_iterator_tag, BB_, ptrdiff_t> super; public: typedef SuccIterator<Term_, BB_> _Self; typedef typename super::pointer pointer; diff --git a/include/llvm/Support/GetElementPtrTypeIterator.h b/include/llvm/Support/GetElementPtrTypeIterator.h index e1cda75..9430477 100644 --- a/include/llvm/Support/GetElementPtrTypeIterator.h +++ b/include/llvm/Support/GetElementPtrTypeIterator.h @@ -21,8 +21,8 @@ namespace llvm { template<typename ItTy = User::const_op_iterator> class generic_gep_type_iterator - : public forward_iterator<const Type *, ptrdiff_t> { - typedef forward_iterator<const Type*, ptrdiff_t> super; + : public std::iterator<std::forward_iterator_tag, const Type *, ptrdiff_t> { + typedef std::iterator<std::forward_iterator_tag, const Type *, ptrdiff_t> super; ItTy OpIt; const Type *CurTy; |