comparison gen/runtime.cpp @ 1527:f19adff18813

A couple of ldc2 tweaks now druntime compiles.
author Robert Clipsham <robert@octarineparrot.com>
date Thu, 09 Jul 2009 12:36:08 +0100
parents b265fb6ce15b
children ad7f2f1862d6
comparison
equal deleted inserted replaced
1526:54b3c1394d62 1527:f19adff18813
334 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M); 334 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M);
335 } 335 }
336 336
337 // Object _d_allocclass(ClassInfo ci) 337 // Object _d_allocclass(ClassInfo ci)
338 { 338 {
339 #if DMDV2
340 std::string fname("_d_newclass");
341 #else
342 std::string fname("_d_allocclass"); 339 std::string fname("_d_allocclass");
343 #endif
344 std::vector<const LLType*> types; 340 std::vector<const LLType*> types;
345 types.push_back(classInfoTy); 341 types.push_back(classInfoTy);
346 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false); 342 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false);
347 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M) 343 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M)
348 ->setAttributes(Attr_NoAlias); 344 ->setAttributes(Attr_NoAlias);