Mercurial > projects > ldc
diff gen/toobj.cpp @ 247:56199753e637 trunk
[svn r264] Fixed debug info for global variables.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 17:49:30 +0200 |
parents | a95056b3c996 |
children | 890b4862ec6c |
line wrap: on
line diff
--- a/gen/toobj.cpp Mon Jun 09 15:52:22 2008 +0200 +++ b/gen/toobj.cpp Mon Jun 09 17:49:30 2008 +0200 @@ -574,6 +574,9 @@ DtoConstInitGlobal(this); else gIR->constInitList.push_back(this); + + if (global.params.symdebug) + DtoDwarfGlobalVariable(gvar, this); } // inside aggregate declaration. declare a field.