remove the Cleanup subclasses.

Swift SVN r4839
This commit is contained in:
Chris Lattner
2013-04-21 05:06:52 +00:00
parent ef79e16137
commit e3d6a489af
11 changed files with 10 additions and 281 deletions

View File

@@ -57,8 +57,6 @@ IRGenModule::IRGenModule(ASTContext &Context,
AllocBoxFn = nullptr;
RetainNoResultFn = nullptr;
ReleaseFn = nullptr;
DeallocObjectFn = nullptr;
DeallocBoxFn = nullptr;
ObjCRetainFn = nullptr;
ObjCReleaseFn = nullptr;
RawAllocFn = nullptr;
@@ -364,28 +362,6 @@ llvm::Constant *IRGenModule::getReleaseFn() {
return ReleaseFn;
}
llvm::Constant *IRGenModule::getDeallocObjectFn() {
if (DeallocObjectFn) return DeallocObjectFn;
// void swift_deallocObject(void *ptr, size_t size);
llvm::Type *argTypes[] = { RefCountedPtrTy, SizeTy };
llvm::FunctionType *fnType =
llvm::FunctionType::get(VoidTy, argTypes, false);
DeallocObjectFn = createRuntimeFunction(*this, "swift_deallocObject", fnType);
return DeallocObjectFn;
}
llvm::Constant *IRGenModule::getDeallocBoxFn() {
if (DeallocObjectFn) return DeallocBoxFn;
// void swift_deallocBox(void *ptr, Metadata *type);
llvm::Type *argTypes[] = { RefCountedPtrTy, TypeMetadataPtrTy };
llvm::FunctionType *fnType =
llvm::FunctionType::get(VoidTy, argTypes, false);
DeallocObjectFn = createRuntimeFunction(*this, "swift_deallocBox", fnType);
return DeallocObjectFn;
}
llvm::Constant *IRGenModule::getGetFunctionMetadataFn() {
if (GetFunctionMetadataFn) return GetFunctionMetadataFn;