Revert "Reduce memory footprint of the Swift compiler"

This reverts commit d58f9486b1.
This commit is contained in:
Ted Kremenek
2015-11-17 21:22:40 -08:00
parent 1389c41b79
commit 8b6d9e9edb
5 changed files with 30 additions and 60 deletions

View File

@@ -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) {