Mercurial > projects > ldc
comparison gen/tollvm.cpp @ 622:26fce59fe80a
Wrapped all the most potentially expensive logging calls in a conditional to only do work when actually requested.
Commented some logging calls that could potentially write out many megabytes of type dumps.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 01 Oct 2008 18:32:31 +0200 |
parents | c9aa338280ed |
children | df196c8dea26 |
comparison
equal
deleted
inserted
replaced
619:722630261d62 | 622:26fce59fe80a |
---|---|
317 assert(0); | 317 assert(0); |
318 } | 318 } |
319 // something else unsupported | 319 // something else unsupported |
320 else | 320 else |
321 { | 321 { |
322 Logger::cout() << *ptrTy << '|' << *valTy << '\n'; | 322 if (Logger::enabled()) |
323 Logger::cout() << *ptrTy << '|' << *valTy << '\n'; | |
323 assert(0); | 324 assert(0); |
324 } | 325 } |
325 return 0; | 326 return 0; |
326 } | 327 } |
327 | 328 |