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:
Chris Lattner
2012-08-03 23:27:15 +00:00
parent ad49ff7e05
commit cd3f362faf
5 changed files with 2 additions and 32 deletions

View File

@@ -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;