From d5e176484d2afa408553ac2b3c551f09a134966f Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 8 Dec 2012 19:19:08 +0100 Subject: [PATCH] Verbose log prettification. --- gen/tollvm.cpp | 1 + ir/irtypestruct.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/tollvm.cpp b/gen/tollvm.cpp index 76eae4c4..20fe312a 100644 --- a/gen/tollvm.cpp +++ b/gen/tollvm.cpp @@ -75,6 +75,7 @@ LLType* DtoType(Type* t) } IF_LOG Logger::println("Building type: %s", t->toChars()); + LOG_SCOPE; assert(t); switch (t->ty) diff --git a/ir/irtypestruct.cpp b/ir/irtypestruct.cpp index d49e0cc2..2cd128ed 100644 --- a/ir/irtypestruct.cpp +++ b/ir/irtypestruct.cpp @@ -222,7 +222,7 @@ llvm::Type* IrTypeStruct::buildType() // set struct body isaStruct(type)->setBody(defaultTypes, packed); - IF_LOG Logger::cout() << "final struct type: " << type << std::endl; + IF_LOG Logger::cout() << "final struct type: " << *type << std::endl; return type; }