diff gen/functions.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 fc9c1a0eabbd
line wrap: on
line diff
--- a/gen/functions.cpp	Mon Jun 09 09:37:08 2008 +0200
+++ b/gen/functions.cpp	Mon Jun 09 12:43:16 2008 +0200
@@ -607,6 +607,10 @@
             s.append("_storage");
 
             LLValue* v = new llvm::AllocaInst(a->getType(),s,allocaPoint);
+
+            if (global.params.symdebug)
+                DtoDwarfLocalVariable(v, vd);
+
             gIR->ir->CreateStore(a,v);
             vd->ir.irLocal->value = v;
         }