Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/gen/tollvm.cpp Sun Sep 28 21:09:21 2008 +0200 +++ b/gen/tollvm.cpp Wed Oct 01 18:32:31 2008 +0200 @@ -319,7 +319,8 @@ // something else unsupported else { - Logger::cout() << *ptrTy << '|' << *valTy << '\n'; + if (Logger::enabled()) + Logger::cout() << *ptrTy << '|' << *valTy << '\n'; assert(0); } return 0;