mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
revert r2364, which introduced the swift_allocClass entrypoint. The optimization that it was
trying to block has since been reverted, and I think there are other approachs that will work. Swift SVN r2547
This commit is contained in:
@@ -52,7 +52,6 @@ IRGenModule::IRGenModule(ASTContext &Context,
|
||||
SizeTy = TargetData.getIntPtrType(getLLVMContext());
|
||||
MemCpyFn = nullptr;
|
||||
AllocObjectFn = nullptr;
|
||||
AllocClassFn = nullptr;
|
||||
RetainNoResultFn = nullptr;
|
||||
ReleaseFn = nullptr;
|
||||
DeallocObjectFn = nullptr;
|
||||
@@ -121,16 +120,6 @@ llvm::Constant *IRGenModule::getAllocObjectFn() {
|
||||
return AllocObjectFn;
|
||||
}
|
||||
|
||||
llvm::Constant *IRGenModule::getAllocClassFn() {
|
||||
if (AllocClassFn) return AllocClassFn;
|
||||
|
||||
llvm::Type *types[] = { HeapMetadataPtrTy, SizeTy, SizeTy };
|
||||
llvm::FunctionType *fnType =
|
||||
llvm::FunctionType::get(RefCountedPtrTy, types, false);
|
||||
AllocClassFn = createRuntimeFunction(*this, "swift_allocClass", fnType);
|
||||
return AllocClassFn;
|
||||
}
|
||||
|
||||
llvm::Constant *IRGenModule::getRawAllocFn() {
|
||||
if (RawAllocFn) return RawAllocFn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user