Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
619:722630261d62 | 622:26fce59fe80a |
---|---|
367 | 367 |
368 ClassDeclaration* base = Type::typeinfotypedef; | 368 ClassDeclaration* base = Type::typeinfotypedef; |
369 DtoForceConstInitDsymbol(base); | 369 DtoForceConstInitDsymbol(base); |
370 | 370 |
371 const LLStructType* stype = isaStruct(base->type->ir.type->get()); | 371 const LLStructType* stype = isaStruct(base->type->ir.type->get()); |
372 Logger::cout() << "got stype: " << *stype << '\n'; | 372 if (Logger::enabled()) |
373 Logger::cout() << "got stype: " << *stype << '\n'; | |
373 | 374 |
374 // vtbl | 375 // vtbl |
375 std::vector<LLConstant*> sinits; | 376 std::vector<LLConstant*> sinits; |
376 sinits.push_back(base->ir.irStruct->vtbl); | 377 sinits.push_back(base->ir.irStruct->vtbl); |
377 | 378 |