comparison gen/runtime.cpp @ 1293:00b408a5b7fa

Remove bogus noalias attribute from _d_arraysetlength[i]T.
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 03 May 2009 15:24:05 +0200
parents 6bd5ce91b136
children 329e45865d84
comparison
equal deleted inserted replaced
1292:ad41053c336e 1293:00b408a5b7fa
312 types.push_back(typeInfoTy); 312 types.push_back(typeInfoTy);
313 types.push_back(sizeTy); 313 types.push_back(sizeTy);
314 types.push_back(sizeTy); 314 types.push_back(sizeTy);
315 types.push_back(voidPtrTy); 315 types.push_back(voidPtrTy);
316 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false); 316 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false);
317 317 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M);
318 // ReadOnly is not technically true, but close enough: It only writes 318 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M);
319 // to memory the caller doesn't know about.
320 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M)
321 ->setAttributes(Attr_NoAlias);
322 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M)
323 ->setAttributes(Attr_NoAlias);
324 } 319 }
325 320
326 // Object _d_allocclass(ClassInfo ci) 321 // Object _d_allocclass(ClassInfo ci)
327 { 322 {
328 std::string fname("_d_allocclass"); 323 std::string fname("_d_allocclass");