From: Benjamin Kramer Date: Mon, 20 May 2013 13:12:58 +0000 (+0000) Subject: Enable pod-like optimizations for pred and succ iterators. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e932e891e55d90398f07957b7333b4ce66ae3829;p=oota-llvm.git 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 --- diff --git a/include/llvm/IR/Use.h b/include/llvm/IR/Use.h index efd8b48a0e9..12cd150af4c 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 265b886daff..71a83e9bcb6 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 struct isPodLike > { + static const bool value = isPodLike::value; +}; + //===--------------------------------------------------------------------===//