Change _d_newclass into _d_allocclass. Add initialization to ClassInfo.create.

This commit is contained in:
Christian Kamm
2008-10-26 14:12:03 +01:00
parent b8bd953dcf
commit cfcda83291
5 changed files with 12 additions and 8 deletions

View File

@@ -812,7 +812,7 @@ DValue* DtoNewClass(Loc loc, TypeClass* tc, NewExp* newexp)
// default allocator
else
{
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_newclass");
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_allocclass");
mem = gIR->CreateCallOrInvoke(fn, tc->sym->ir.irStruct->classInfo, ".newclass_gc_alloc")->get();
mem = DtoBitCast(mem, DtoType(tc), ".newclass_gc");
}