Mercurial > projects > ldc
diff gen/toir.cpp @ 245:d61ce72c39ab trunk
[svn r262] Fixed debug info for normal function parameters.
Fixed debug info for pointers to basic types.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 12:43:16 +0200 |
parents | a95056b3c996 |
children | 8dbddae09152 |
line wrap: on
line diff
--- a/gen/toir.cpp Mon Jun 09 09:37:08 2008 +0200 +++ b/gen/toir.cpp Mon Jun 09 12:43:16 2008 +0200 @@ -78,12 +78,9 @@ vd->ir.irLocal = new IrLocal(vd); vd->ir.irLocal->value = allocainst; - if (global.params.symdebug && (vd->type->isintegral() || vd->type->isfloating())) + if (global.params.symdebug) { - LLGlobalVariable* cu = DtoDwarfCompileUnit(vd->getModule()); - LLGlobalVariable* bt = DtoDwarfBasicType(vd->type, cu); - LLGlobalVariable* vdesc = DtoDwarfVariable(vd, bt); - DtoDwarfDeclare(allocainst, vdesc); + DtoDwarfLocalVariable(allocainst, vd); } }