[svn r262] Fixed debug info for normal function parameters.

Fixed debug info for pointers to basic types.
This commit is contained in:
Tomas Lindquist Olsen 2008-06-09 12:43:16 +02:00
parent 8b83eda2a2
commit 1e87ae15ef
12 changed files with 217 additions and 28 deletions

View file

@ -607,6 +607,10 @@ void DtoDefineFunc(FuncDeclaration* fd)
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;
}