mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
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
This commit is contained in:
@@ -273,7 +273,7 @@ public:
|
|||||||
///
|
///
|
||||||
class ArrayType : public SequentialType {
|
class ArrayType : public SequentialType {
|
||||||
friend class TypeMap<ArrayValType, ArrayType>;
|
friend class TypeMap<ArrayValType, ArrayType>;
|
||||||
unsigned NumElements;
|
uint64_t NumElements;
|
||||||
|
|
||||||
ArrayType(const ArrayType &); // Do not implement
|
ArrayType(const ArrayType &); // Do not implement
|
||||||
const ArrayType &operator=(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...
|
/// Private ctor - Only can be created by a static member...
|
||||||
///
|
///
|
||||||
ArrayType(const Type *ElType, unsigned NumEl);
|
ArrayType(const Type *ElType, uint64_t NumEl);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// ArrayType::get - This static method is the primary way to construct an
|
/// ArrayType::get - This static method is the primary way to construct an
|
||||||
/// ArrayType
|
/// 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.
|
// Implement the AbstractTypeUser interface.
|
||||||
virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);
|
virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);
|
||||||
|
Reference in New Issue
Block a user