diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-25 15:00:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 15:00:45 +0000 |
commit | c6a4bf1251f3dc44d2164c0847ce0b19ed7409a2 (patch) | |
tree | ef0f77705b3b648297819912eeabac859a66255b /include/llvm/Support/InstIterator.h | |
parent | de32fedb8c6ec95258dd9e3c104f0e7e49f283cd (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.h | 9 |
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 |