15 changes: 10 additions & 5 deletions src/toobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ dt_t **Type_toDt(Type *t, dt_t **pdt);
void ClassDeclaration_toDt(ClassDeclaration *cd, dt_t **pdt);
void StructDeclaration_toDt(StructDeclaration *sd, dt_t **pdt);

void toDebug(TypedefDeclaration *tdd);
void toDebug(EnumDeclaration *ed);
void toDebug(StructDeclaration *sd);
void toDebug(ClassDeclaration *cd);

/* ================================================================== */

// Put out instance of ModuleInfo for this Module
Expand Down Expand Up @@ -219,7 +224,7 @@ void ClassDeclaration::toObjFile(int multiobj)
}

if (global.params.symdebug)
toDebug();
toDebug(this);

assert(!scope); // semantic() should have been run to completion

Expand Down Expand Up @@ -644,7 +649,7 @@ void InterfaceDeclaration::toObjFile(int multiobj)
return;

if (global.params.symdebug)
toDebug();
toDebug(this);

scclass = SCglobal;
if (isInstantiated())
Expand Down Expand Up @@ -821,7 +826,7 @@ void StructDeclaration::toObjFile(int multiobj)
if (!isAnonymous() && members)
{
if (global.params.symdebug)
toDebug();
toDebug(this);

type->genTypeInfo(NULL);

Expand Down Expand Up @@ -990,7 +995,7 @@ void TypedefDeclaration::toObjFile(int multiobj)
}

if (global.params.symdebug)
toDebug();
toDebug(this);

type->genTypeInfo(NULL);

Expand Down Expand Up @@ -1030,7 +1035,7 @@ void EnumDeclaration::toObjFile(int multiobj)
return;

if (global.params.symdebug)
toDebug();
toDebug(this);

type->genTypeInfo(NULL);

Expand Down