_d_allocclass -> "_d_newclass".

The define is a leftover from the times when we supported
both D1 and D2.
This commit is contained in:
David Nadlinger
2013-10-24 00:25:36 +02:00
parent 3d8e2e5e5c
commit 1f59740524
5 changed files with 6 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ DValue* DtoNewClass(Loc loc, TypeClass* tc, NewExp* newexp)
// default allocator
else
{
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, _d_allocclass);
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_newclass");
LLConstant* ci = DtoBitCast(tc->sym->ir.irAggr->getClassInfoSymbol(), DtoType(ClassDeclaration::classinfo->type));
mem = gIR->CreateCallOrInvoke(fn, ci, ".newclass_gc_alloc").getInstruction();
mem = DtoBitCast(mem, DtoType(tc), ".newclass_gc");