From: Chris Lattner Date: Sat, 8 Jan 2005 20:19:27 +0000 (+0000) Subject: Allow array types to have 64-bit size. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=723a9122610ec8ed750f017dbefc0a3e75547b76;p=oota-llvm.git Allow array types to have 64-bit size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19394 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index ce110917893..bb914b4bdf3 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -273,7 +273,7 @@ public: /// class ArrayType : public SequentialType { friend class TypeMap; - unsigned NumElements; + uint64_t NumElements; ArrayType(const ArrayType &); // Do not implement const ArrayType &operator=(const ArrayType &); // Do not implement @@ -284,15 +284,15 @@ protected: /// /// 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);