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

@@ -257,9 +257,9 @@ static void LLVM_D_BuildRuntimeModule()
llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M);
}
// Object _d_newclass(ClassInfo ci)
// Object _d_allocclass(ClassInfo ci)
{
std::string fname("_d_newclass");
std::string fname("_d_allocclass");
std::vector<const LLType*> types;
types.push_back(classInfoTy);
const llvm::FunctionType* fty = llvm::FunctionType::get(objectTy, types, false);