comparison 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
comparison
equal deleted inserted replaced
244:a95056b3c996 245:d61ce72c39ab
605 std::string s(a->getName()); 605 std::string s(a->getName());
606 Logger::println("giving argument '%s' storage", s.c_str()); 606 Logger::println("giving argument '%s' storage", s.c_str());
607 s.append("_storage"); 607 s.append("_storage");
608 608
609 LLValue* v = new llvm::AllocaInst(a->getType(),s,allocaPoint); 609 LLValue* v = new llvm::AllocaInst(a->getType(),s,allocaPoint);
610
611 if (global.params.symdebug)
612 DtoDwarfLocalVariable(v, vd);
613
610 gIR->ir->CreateStore(a,v); 614 gIR->ir->CreateStore(a,v);
611 vd->ir.irLocal->value = v; 615 vd->ir.irLocal->value = v;
612 } 616 }
613 } 617 }
614 618