mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
bump pointer allocate LLVM IR types, since they are never deallocated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -173,13 +173,17 @@ public:
|
||||
Type X86_FP80Ty, FP128Ty, PPC_FP128Ty, X86_MMXTy;
|
||||
IntegerType Int1Ty, Int8Ty, Int16Ty, Int32Ty, Int64Ty;
|
||||
|
||||
|
||||
/// TypeAllocator - All dynamically allocated types are allocated from this.
|
||||
/// They live forever until the context is torn down.
|
||||
BumpPtrAllocator TypeAllocator;
|
||||
|
||||
DenseMap<unsigned, IntegerType*> IntegerTypes;
|
||||
|
||||
// TODO: Optimize FunctionTypes/AnonStructTypes!
|
||||
std::map<std::vector<Type*>, FunctionType*> FunctionTypes;
|
||||
std::map<std::vector<Type*>, StructType*> AnonStructTypes;
|
||||
StringMap<StructType*> NamedStructTypes;
|
||||
SmallPtrSet<StructType*, 16> EmptyNamedStructTypes;
|
||||
unsigned NamedStructTypesUniqueID;
|
||||
|
||||
DenseMap<std::pair<Type *, uint64_t>, ArrayType*> ArrayTypes;
|
||||
|
Reference in New Issue
Block a user