summaryrefslogtreecommitdiff
path: root/include/llvm/Support/CFG.h
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
commite932e891e55d90398f07957b7333b4ce66ae3829 (patch)
treeca55b6a9356412427360bd871ce84c8576a1ed86 /include/llvm/Support/CFG.h
parent7536ecf2916a6a986f0d328069e3a210f34d5ea7 (diff)
downloadllvm-e932e891e55d90398f07957b7333b4ce66ae3829.tar.gz
llvm-e932e891e55d90398f07957b7333b4ce66ae3829.tar.bz2
llvm-e932e891e55d90398f07957b7333b4ce66ae3829.tar.xz
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
Diffstat (limited to 'include/llvm/Support/CFG.h')
-rw-r--r--include/llvm/Support/CFG.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h
index 265b886daf..71a83e9bcb 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;
+};
+
//===--------------------------------------------------------------------===//