Mercurial > projects > ldc
comparison gen/arrays.cpp @ 144:a27941d00351 trunk
[svn r149] fixed: a bunch of D-style variadics problems.
fixed: GotoDefaultStatement implemented.
fixed: some other minor bugs.
author | lindquist |
---|---|
date | Sat, 26 Jan 2008 17:13:22 +0100 |
parents | 0e28624814e8 |
children | ccd07d9f2ce9 |
comparison
equal
deleted
inserted
replaced
143:336ec4f4bbb3 | 144:a27941d00351 |
---|---|
444 } | 444 } |
445 | 445 |
446 ////////////////////////////////////////////////////////////////////////////////////////// | 446 ////////////////////////////////////////////////////////////////////////////////////////// |
447 void DtoStaticArrayCopy(llvm::Value* dst, llvm::Value* src) | 447 void DtoStaticArrayCopy(llvm::Value* dst, llvm::Value* src) |
448 { | 448 { |
449 Logger::cout() << "static array copy: " << *dst << " from " << *src << '\n'; | |
449 assert(dst->getType() == src->getType()); | 450 assert(dst->getType() == src->getType()); |
450 size_t arrsz = getABITypeSize(dst->getType()->getContainedType(0)); | 451 size_t arrsz = getABITypeSize(dst->getType()->getContainedType(0)); |
451 llvm::Value* n = llvm::ConstantInt::get(DtoSize_t(), arrsz, false); | 452 llvm::Value* n = llvm::ConstantInt::get(DtoSize_t(), arrsz, false); |
452 | 453 |
453 const llvm::Type* arrty = getPtrToType(llvm::Type::Int8Ty); | 454 const llvm::Type* arrty = getPtrToType(llvm::Type::Int8Ty); |