Verbose log prettification.

This commit is contained in:
David Nadlinger
2012-12-08 19:19:08 +01:00
parent 3df39b642a
commit d5e176484d
2 changed files with 2 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ LLType* DtoType(Type* t)
}
IF_LOG Logger::println("Building type: %s", t->toChars());
LOG_SCOPE;
assert(t);
switch (t->ty)

View File

@@ -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;
}