[svn r264] Fixed debug info for global variables.

This commit is contained in:
Tomas Lindquist Olsen
2008-06-09 17:49:30 +02:00
parent 37b6748897
commit cfc8befb5b
5 changed files with 61 additions and 1 deletions

View File

@@ -574,6 +574,9 @@ void VarDeclaration::toObjFile()
DtoConstInitGlobal(this);
else
gIR->constInitList.push_back(this);
if (global.params.symdebug)
DtoDwarfGlobalVariable(gvar, this);
}
// inside aggregate declaration. declare a field.