summaryrefslogtreecommitdiff
path: root/include/llvm/Support/GetElementPtrTypeIterator.h
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-19 14:42:50 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-19 14:42:50 +0000
commitca12a2139e7ed8b5f30df9927494dd7aae929a7c (patch)
tree44f06b53124dd34cdd6f1ec9771550d25fef644f /include/llvm/Support/GetElementPtrTypeIterator.h
parent8fbbb3980755d74539a0aed02bc18842ed2bd18d (diff)
downloadllvm-ca12a2139e7ed8b5f30df9927494dd7aae929a7c.tar.gz
llvm-ca12a2139e7ed8b5f30df9927494dd7aae929a7c.tar.bz2
llvm-ca12a2139e7ed8b5f30df9927494dd7aae929a7c.tar.xz
Convert gep_type_begin and gep_type_end to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/GetElementPtrTypeIterator.h')
-rw-r--r--include/llvm/Support/GetElementPtrTypeIterator.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Support/GetElementPtrTypeIterator.h b/include/llvm/Support/GetElementPtrTypeIterator.h
index 526afd40c6..ef92c95ee7 100644
--- a/include/llvm/Support/GetElementPtrTypeIterator.h
+++ b/include/llvm/Support/GetElementPtrTypeIterator.h
@@ -97,16 +97,16 @@ namespace llvm {
return gep_type_iterator::end(GEP.op_end());
}
- template<typename ItTy>
- inline generic_gep_type_iterator<ItTy>
- gep_type_begin(Type *Op0, ItTy I, ItTy E) {
- return generic_gep_type_iterator<ItTy>::begin(Op0, I);
+ template<typename T>
+ inline generic_gep_type_iterator<const T *>
+ gep_type_begin(Type *Op0, ArrayRef<T> A) {
+ return generic_gep_type_iterator<const T *>::begin(Op0, A.begin());
}
- template<typename ItTy>
- inline generic_gep_type_iterator<ItTy>
- gep_type_end(Type *Op0, ItTy I, ItTy E) {
- return generic_gep_type_iterator<ItTy>::end(E);
+ template<typename T>
+ inline generic_gep_type_iterator<const T *>
+ gep_type_end(Type *Op0, ArrayRef<T> A) {
+ return generic_gep_type_iterator<const T *>::end(A.end());
}
} // end namespace llvm