comparison gen/todebug.cpp @ 155:7f92f477ff53 trunk

[svn r171] starting to move IR data from AST nodes into IRState; started with IrFunction
author ChristianK
date Tue, 29 Apr 2008 21:33:50 +0200
parents ffcc9a2f3d9d
children ccd07d9f2ce9
comparison
equal deleted inserted replaced
154:5cb946f323d2 155:7f92f477ff53
180 180
181 ////////////////////////////////////////////////////////////////////////////////////////////////// 181 //////////////////////////////////////////////////////////////////////////////////////////////////
182 182
183 void DtoDwarfFuncStart(FuncDeclaration* fd) 183 void DtoDwarfFuncStart(FuncDeclaration* fd)
184 { 184 {
185 assert(fd->irFunc->dwarfSubProg); 185 assert(gIR->irFunc[fd]->dwarfSubProg);
186 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.func.start"), dbgToArrTy(fd->irFunc->dwarfSubProg)); 186 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.func.start"), dbgToArrTy(gIR->irFunc[fd]->dwarfSubProg));
187 } 187 }
188 188
189 void DtoDwarfFuncEnd(FuncDeclaration* fd) 189 void DtoDwarfFuncEnd(FuncDeclaration* fd)
190 { 190 {
191 assert(fd->irFunc->dwarfSubProg); 191 assert(gIR->irFunc[fd]->dwarfSubProg);
192 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.region.end"), dbgToArrTy(fd->irFunc->dwarfSubProg)); 192 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.region.end"), dbgToArrTy(gIR->irFunc[fd]->dwarfSubProg));
193 } 193 }
194 194
195 ////////////////////////////////////////////////////////////////////////////////////////////////// 195 //////////////////////////////////////////////////////////////////////////////////////////////////
196 196
197 void DtoDwarfStopPoint(unsigned ln) 197 void DtoDwarfStopPoint(unsigned ln)