mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Reduce memory footprint of the Swift compiler"
This reverts commit d58f9486b1.
This commit is contained in:
@@ -124,20 +124,6 @@ SILModule::~SILModule() {
|
||||
delete (SILTypeListUniquingType*)TypeListUniquing;
|
||||
}
|
||||
|
||||
void *SILModule::allocate(unsigned Size, unsigned Align) const {
|
||||
if (getASTContext().LangOpts.UseMalloc)
|
||||
return AlignedAlloc(Size, Align);
|
||||
|
||||
return BPA.Allocate(Size, Align);
|
||||
}
|
||||
|
||||
void *SILModule::allocateInst(unsigned Size, unsigned Align) const {
|
||||
if (true || getASTContext().LangOpts.UseMalloc)
|
||||
return AlignedAlloc(Size, Align);
|
||||
|
||||
return BPA.Allocate(Size, Align);
|
||||
}
|
||||
|
||||
SILWitnessTable *
|
||||
SILModule::createWitnessTableDeclaration(ProtocolConformance *C,
|
||||
SILLinkage linkage) {
|
||||
|
||||
Reference in New Issue
Block a user