diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-20 13:12:58 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-20 13:12:58 +0000 |
| commit | e932e891e55d90398f07957b7333b4ce66ae3829 (patch) | |
| tree | ca55b6a9356412427360bd871ce84c8576a1ed86 | |
| parent | 7536ecf2916a6a986f0d328069e3a210f34d5ea7 (diff) | |
| download | external_llvm-e932e891e55d90398f07957b7333b4ce66ae3829.zip external_llvm-e932e891e55d90398f07957b7333b4ce66ae3829.tar.gz external_llvm-e932e891e55d90398f07957b7333b4ce66ae3829.tar.bz2 | |
Enable pod-like optimizations for pred and succ iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182257 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | include/llvm/IR/Use.h | 1 | ||||
| -rw-r--r-- | include/llvm/Support/CFG.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/IR/Use.h b/include/llvm/IR/Use.h index efd8b48..12cd150 100644 --- a/include/llvm/IR/Use.h +++ b/include/llvm/IR/Use.h @@ -177,7 +177,6 @@ public: typedef typename super::reference reference; typedef typename super::pointer pointer; - value_use_iterator(const _Self &I) : U(I.U) {} value_use_iterator() {} bool operator==(const _Self &x) const { diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 265b886..71a83e9 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -240,6 +240,10 @@ inline succ_const_iterator succ_end(const BasicBlock *BB) { return succ_const_iterator(BB->getTerminator(), true); } +template <typename T, typename U> struct isPodLike<SuccIterator<T, U> > { + static const bool value = isPodLike<T>::value; +}; + //===--------------------------------------------------------------------===// |
