mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Mention TypeInfo emission in debug log.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user