summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-05-20 13:12:58 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-05-20 13:12:58 +0000
commit8e4b20f98de4332fb102a32719c39b92a788bccd (patch)
tree12e24ec95cb350dfbecf743e9df0e05bff7ae558 /llvm
parentbcfd838bcb4d34d00bdf0d428e4758e96c164857 (diff)
downloadbcm5719-llvm-8e4b20f98de4332fb102a32719c39b92a788bccd.tar.gz
bcm5719-llvm-8e4b20f98de4332fb102a32719c39b92a788bccd.zip
Enable pod-like optimizations for pred and succ iterators.
llvm-svn: 182257
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/Use.h1
-rw-r--r--llvm/include/llvm/Support/CFG.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Use.h b/llvm/include/llvm/IR/Use.h
index efd8b48a0e9..12cd150af4c 100644
--- a/llvm/include/llvm/IR/Use.h
+++ b/llvm/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/llvm/include/llvm/Support/CFG.h b/llvm/include/llvm/Support/CFG.h
index 265b886daff..71a83e9bcb6 100644
--- a/llvm/include/llvm/Support/CFG.h
+++ b/llvm/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;
+};
+
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud