Mention TypeInfo emission in debug log.

This commit is contained in:
David Nadlinger
2013-10-09 19:28:09 +02:00
parent d46d4ce4b1
commit 3d9b70c7a6
2 changed files with 6 additions and 1 deletions

View File

@@ -1428,6 +1428,9 @@ LLConstant* DtoConstExpInit(Loc loc, Type* targetType, Expression* exp)
LLConstant* DtoTypeInfoOf(Type* type, bool base)
{
IF_LOG Logger::println("DtoTypeInfoOf(type = '%s', base='%d')", type->toChars(), base);
LOG_SCOPE
type = type->merge2(); // needed.. getTypeInfo does the same
type->getTypeInfo(NULL);
TypeInfoDeclaration* tidecl = type->vtinfo;

View File

@@ -115,7 +115,9 @@ Expression *Type::getInternalTypeInfo(Scope *sc)
Expression *Type::getTypeInfo(Scope *sc)
{
//printf("Type::getTypeInfo() %p, %s\n", this, toChars());
IF_LOG Logger::println("Type::getTypeInfo(): %s", toChars());
LOG_SCOPE
if (!Type::typeinfo)
{
error(Loc(), "TypeInfo not found. object.d may be incorrectly installed or corrupt, compile with -v switch");