Mercurial > projects > ldc
comparison gen/arrays.cpp @ 825:a70ddd449e7d
Commented some logging that could be '''very''' long, cuts -vv output size of a gtkd gl sample down 1.2GB by 3/4.
Fixed wrong pointer type for multidimension "deep" slicing.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 04 Dec 2008 16:11:09 +0100 |
parents | 340acf1535d0 |
children | a65a6996922f |
comparison
equal
deleted
inserted
replaced
824:b972fec8a5f5 | 825:a70ddd449e7d |
---|---|
185 break; | 185 break; |
186 | 186 |
187 default: | 187 default: |
188 error("unhandled array init: %s = %s", array->getType()->toChars(), value->getType()->toChars()); | 188 error("unhandled array init: %s = %s", array->getType()->toChars(), value->getType()->toChars()); |
189 assert(0 && "unhandled array init"); | 189 assert(0 && "unhandled array init"); |
190 } | |
191 | |
192 if (Logger::enabled()) | |
193 { | |
194 Logger::cout() << "ptr = " << *args[0] << std::endl; | |
195 Logger::cout() << "dim = " << *args[1] << std::endl; | |
196 Logger::cout() << "val = " << *args[2] << std::endl; | |
190 } | 197 } |
191 | 198 |
192 LLFunction* fn = LLVM_D_GetRuntimeFunction(gIR->module, funcname); | 199 LLFunction* fn = LLVM_D_GetRuntimeFunction(gIR->module, funcname); |
193 assert(fn); | 200 assert(fn); |
194 if (Logger::enabled()) | 201 if (Logger::enabled()) |