comparison gen/todebug.cpp @ 136:0e28624814e8 trunk

[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
author lindquist
date Thu, 17 Jan 2008 03:15:12 +0100
parents 44a95ac7368a
children 0ab29b838084
comparison
equal deleted inserted replaced
135:176bd52b3cf5 136:0e28624814e8
162 162
163 ////////////////////////////////////////////////////////////////////////////////////////////////// 163 //////////////////////////////////////////////////////////////////////////////////////////////////
164 164
165 void DtoDwarfFuncStart(FuncDeclaration* fd) 165 void DtoDwarfFuncStart(FuncDeclaration* fd)
166 { 166 {
167 assert(fd->llvmDwarfSubProgram); 167 assert(fd->irFunc->dwarfSubProg);
168 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.func.start"), dbgToArrTy(fd->llvmDwarfSubProgram)); 168 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.func.start"), dbgToArrTy(fd->irFunc->dwarfSubProg));
169 } 169 }
170 170
171 void DtoDwarfFuncEnd(FuncDeclaration* fd) 171 void DtoDwarfFuncEnd(FuncDeclaration* fd)
172 { 172 {
173 assert(fd->llvmDwarfSubProgram); 173 assert(fd->irFunc->dwarfSubProg);
174 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.region.end"), dbgToArrTy(fd->llvmDwarfSubProgram)); 174 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.region.end"), dbgToArrTy(fd->irFunc->dwarfSubProg));
175 } 175 }
176 176
177 ////////////////////////////////////////////////////////////////////////////////////////////////// 177 //////////////////////////////////////////////////////////////////////////////////////////////////
178 178
179 void DtoDwarfStopPoint(unsigned ln) 179 void DtoDwarfStopPoint(unsigned ln)