diff options
author | Duncan Sands <baldrick@free.fr> | 2012-10-29 17:31:46 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-10-29 17:31:46 +0000 |
commit | 7ed4f94c1337b931524af99eb1aac72563888239 (patch) | |
tree | 928033939c9829e43c1fef92fccc82a17ce04296 /include/llvm/DataLayout.h | |
parent | 6a09098cca6938dbfdc28e26fc45d626342816ac (diff) |
Remove a wrapper around getIntPtrType added to GVN by Hal in commit 166624 (the
wrapper returns a vector of integers when passed a vector of pointers) by having
getIntPtrType itself return a vector of integers in this case. Outside of this
wrapper, I didn't find anywhere in the codebase that was relying on the old
behaviour for vectors of pointers, so give this a whirl through the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DataLayout.h')
-rw-r--r-- | include/llvm/DataLayout.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/DataLayout.h b/include/llvm/DataLayout.h index dfacd9f32a..987569d93a 100644 --- a/include/llvm/DataLayout.h +++ b/include/llvm/DataLayout.h @@ -341,13 +341,14 @@ public: /// unsigned getPreferredTypeAlignmentShift(Type *Ty) const; - /// getIntPtrType - Return an integer type that is the same size or - /// greater to the pointer size based on the address space. + /// getIntPtrType - Return an integer type with size at least as big as that + /// of a pointer in the given address space. IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace) const; - /// getIntPtrType - Return an integer type that is the same size or - /// greater to the pointer size based on the Type. - IntegerType *getIntPtrType(Type *) const; + /// getIntPtrType - Return an integer (vector of integer) type with size at + /// least as big as that of a pointer of the given pointer (vector of pointer) + /// type. + Type *getIntPtrType(Type *) const; /// getIndexedOffset - return the offset from the beginning of the type for /// the specified indices. This is used to implement getelementptr. |