[llvm-commits] CVS: llvm/include/llvm/DerivedTypes.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 8 12:19:41 PST 2005
Changes in directory llvm/include/llvm:
DerivedTypes.h updated: 1.64 -> 1.65
---
Log message:
Allow array types to have 64-bit size.
---
Diffs of the changes: (+4 -4)
Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.64 llvm/include/llvm/DerivedTypes.h:1.65
--- llvm/include/llvm/DerivedTypes.h:1.64 Mon Nov 15 13:02:35 2004
+++ llvm/include/llvm/DerivedTypes.h Sat Jan 8 14:19:27 2005
@@ -273,7 +273,7 @@
///
class ArrayType : public SequentialType {
friend class TypeMap<ArrayValType, ArrayType>;
- unsigned NumElements;
+ uint64_t NumElements;
ArrayType(const ArrayType &); // Do not implement
const ArrayType &operator=(const ArrayType &); // Do not implement
@@ -284,15 +284,15 @@
///
/// Private ctor - Only can be created by a static member...
///
- ArrayType(const Type *ElType, unsigned NumEl);
+ ArrayType(const Type *ElType, uint64_t NumEl);
public:
/// ArrayType::get - This static method is the primary way to construct an
/// ArrayType
///
- static ArrayType *get(const Type *ElementType, unsigned NumElements);
+ static ArrayType *get(const Type *ElementType, uint64_t NumElements);
- inline unsigned getNumElements() const { return NumElements; }
+ inline uint64_t getNumElements() const { return NumElements; }
// Implement the AbstractTypeUser interface.
virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);
More information about the llvm-commits
mailing list