mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
remove the Cleanup subclasses.
Swift SVN r4839
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user