diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-07-19 14:01:37 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-07-19 14:01:37 +0000 |
| commit | bf904773bb917c7fee56ad103b611d50d3ef3bd9 (patch) | |
| tree | 71f6b256e0370fab5f2c2fe215e91d797f63cea7 /llvm/include | |
| parent | f4b14a2b0d0130e07944e59ac23c21578b62729e (diff) | |
| download | bcm5719-llvm-bf904773bb917c7fee56ad103b611d50d3ef3bd9.tar.gz bcm5719-llvm-bf904773bb917c7fee56ad103b611d50d3ef3bd9.zip | |
Convert TargetData::getIndexedOffset to use ArrayRef.
llvm-svn: 135478
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Target/TargetData.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/TargetData.h b/llvm/include/llvm/Target/TargetData.h index e210b27be05..315bee96bac 100644 --- a/llvm/include/llvm/Target/TargetData.h +++ b/llvm/include/llvm/Target/TargetData.h @@ -33,6 +33,8 @@ class StructType; class StructLayout; class GlobalVariable; class LLVMContext; +template<typename T> +class ArrayRef; /// Enum used to categorize the alignment types stored by TargetAlignElem enum AlignTypeEnum { @@ -264,8 +266,7 @@ public: /// getIndexedOffset - return the offset from the beginning of the type for /// the specified indices. This is used to implement getelementptr. /// - uint64_t getIndexedOffset(Type *Ty, - Value* const* Indices, unsigned NumIndices) const; + uint64_t getIndexedOffset(Type *Ty, ArrayRef<Value *> Indices) const; /// getStructLayout - Return a StructLayout object, indicating the alignment /// of the struct, its size, and the offsets of its fields. Note that this |

