comparison 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
comparison
equal deleted inserted replaced
244:a95056b3c996 245:d61ce72c39ab
76 //allocainst->setAlignment(vd->type->alignsize()); // TODO 76 //allocainst->setAlignment(vd->type->alignsize()); // TODO
77 assert(!vd->ir.irLocal); 77 assert(!vd->ir.irLocal);
78 vd->ir.irLocal = new IrLocal(vd); 78 vd->ir.irLocal = new IrLocal(vd);
79 vd->ir.irLocal->value = allocainst; 79 vd->ir.irLocal->value = allocainst;
80 80
81 if (global.params.symdebug && (vd->type->isintegral() || vd->type->isfloating())) 81 if (global.params.symdebug)
82 { 82 {
83 LLGlobalVariable* cu = DtoDwarfCompileUnit(vd->getModule()); 83 DtoDwarfLocalVariable(allocainst, vd);
84 LLGlobalVariable* bt = DtoDwarfBasicType(vd->type, cu);
85 LLGlobalVariable* vdesc = DtoDwarfVariable(vd, bt);
86 DtoDwarfDeclare(allocainst, vdesc);
87 } 84 }
88 } 85 }
89 86
90 Logger::cout() << "llvm value for decl: " << *vd->ir.irLocal->value << '\n'; 87 Logger::cout() << "llvm value for decl: " << *vd->ir.irLocal->value << '\n';
91 DValue* ie = DtoInitializer(vd->init); 88 DValue* ie = DtoInitializer(vd->init);