Mercurial > projects > ldc
comparison gen/runtime.cpp @ 1523:833337c65fd3
Fixed some unmerged parts of the D2 frontend.
Removed the automatic linker flags for D2 (temp).
Renamed a runtime function for D2.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Mon, 06 Jul 2009 23:54:02 +0100 |
parents | 09734fb929c0 |
children | b265fb6ce15b |
comparison
equal
deleted
inserted
replaced
1513:8a5570ddad25 | 1523:833337c65fd3 |
---|---|
326 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M); | 326 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M); |
327 } | 327 } |
328 | 328 |
329 // Object _d_allocclass(ClassInfo ci) | 329 // Object _d_allocclass(ClassInfo ci) |
330 { | 330 { |
331 #if DMDV2 | |
332 std::string fname("_d_newclass"); | |
333 #else | |
331 std::string fname("_d_allocclass"); | 334 std::string fname("_d_allocclass"); |
335 #endif | |
332 std::vector<const LLType*> types; | 336 std::vector<const LLType*> types; |
333 types.push_back(classInfoTy); | 337 types.push_back(classInfoTy); |
334 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false); | 338 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false); |
335 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M) | 339 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M) |
336 ->setAttributes(Attr_NoAlias); | 340 ->setAttributes(Attr_NoAlias); |