aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/InstIterator.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-25 15:00:45 +0000
committerChris Lattner <sabre@nondot.org>2002-07-25 15:00:45 +0000
commitc6a4bf1251f3dc44d2164c0847ce0b19ed7409a2 (patch)
treeef0f77705b3b648297819912eeabac859a66255b /include/llvm/Support/InstIterator.h
parentde32fedb8c6ec95258dd9e3c104f0e7e49f283cd (diff)
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/InstIterator.h')
-rw-r--r--include/llvm/Support/InstIterator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/InstIterator.h b/include/llvm/Support/InstIterator.h
index eb64113b7f..4f8f2af6c5 100644
--- a/include/llvm/Support/InstIterator.h
+++ b/include/llvm/Support/InstIterator.h
@@ -33,6 +33,15 @@ public:
typedef unsigned difference_type;
typedef BIty pointer;
typedef IIty reference;
+
+ // Copy constructor...
+ template<typename A, typename B, typename C, typename D>
+ InstIterator(const InstIterator<A,B,C,D> &II)
+ : BBs(II.BBs), BB(II.BB), BI(II.BI) {}
+
+ template<typename A, typename B, typename C, typename D>
+ InstIterator(InstIterator<A,B,C,D> &II)
+ : BBs(II.BBs), BB(II.BB), BI(II.BI) {}
template<class M> InstIterator(M &m)
: BBs(m.getBasicBlockList()), BB(BBs.begin()) { // begin ctor