Ensure all logging of llvm values/types is only called when -vv is passed

This commit is contained in:
Tomas Lindquist Olsen 2008-11-29 23:39:04 +01:00
parent d522fef71f
commit dcf3c96f65
2 changed files with 11 additions and 6 deletions

View file

@ -247,7 +247,8 @@ void DtoResolveClass(ClassDeclaration* cd)
llvm::cast<llvm::OpaqueType>(irstruct->vtblTy.get())->refineAbstractTypeTo(LLArrayType::get(getVoidPtrType(), cd->vtbl.dim));
// log
Logger::cout() << "final class type: " << *ts->ir.type->get() << '\n';
if (Logger::enabled())
Logger::cout() << "final class type: " << *ts->ir.type->get() << '\n';
// pop state
gIR->structs.pop_back();