mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Ensure all logging of llvm values/types is only called when -vv is passed
This commit is contained in:
parent
d522fef71f
commit
dcf3c96f65
2 changed files with 11 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue