diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-01-08 20:19:27 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-01-08 20:19:27 +0000 |
| commit | d662b785efa4eddbbba1af20ddbc7ea9791a3175 (patch) | |
| tree | 3b8a56555ca6d2a35e42f364ad974ebae06bfc71 | |
| parent | 1a26d15c8068f32c76035a431935804aad69d5f7 (diff) | |
| download | bcm5719-llvm-d662b785efa4eddbbba1af20ddbc7ea9791a3175.tar.gz bcm5719-llvm-d662b785efa4eddbbba1af20ddbc7ea9791a3175.zip | |
Allow array types to have 64-bit size.
llvm-svn: 19394
| -rw-r--r-- | llvm/include/llvm/DerivedTypes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/DerivedTypes.h b/llvm/include/llvm/DerivedTypes.h index ce110917893..bb914b4bdf3 100644 --- a/llvm/include/llvm/DerivedTypes.h +++ b/llvm/include/llvm/DerivedTypes.h @@ -273,7 +273,7 @@ public: /// 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 @@ 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); |

