Mercurial > projects > ldc
diff gen/typinf.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 | cd4eeb6cc5f6 |
children | 6aaa3d3c1183 |
line wrap: on
line diff
--- a/gen/typinf.cpp Sun Sep 28 21:09:21 2008 +0200 +++ b/gen/typinf.cpp Wed Oct 01 18:32:31 2008 +0200 @@ -369,7 +369,8 @@ DtoForceConstInitDsymbol(base); const LLStructType* stype = isaStruct(base->type->ir.type->get()); - Logger::cout() << "got stype: " << *stype << '\n'; + if (Logger::enabled()) + Logger::cout() << "got stype: " << *stype << '\n'; // vtbl std::vector<LLConstant*> sinits;