comparison gen/todebug.cpp @ 217:0806379a5eca trunk

[svn r233] Added: -oq command line option for writing fully qualified object names. Added: started support for x86 80bit floating point. Changed: aggregates passed by value now use the llvm 'byval' parameter attribute, also lays ground work for using other attributes. Changed: eliminated a lot more std::vectorS, these showed up pretty much at the top when profiling! Changed: performed other misc. cleanups. Changed: halt expression now call the new llvm trap intrinsic instead of an assert(0). Changed: dstress suite now passes -O0 by default, this only eliminates unreferenced globals, which speeds up linking quite a bit.
author lindquist
date Thu, 05 Jun 2008 06:38:36 +0200
parents 7816aafeea3c
children a95056b3c996
comparison
equal deleted inserted replaced
216:3d022aa016ae 217:0806379a5eca
194 194
195 ////////////////////////////////////////////////////////////////////////////////////////////////// 195 //////////////////////////////////////////////////////////////////////////////////////////////////
196 196
197 void DtoDwarfStopPoint(unsigned ln) 197 void DtoDwarfStopPoint(unsigned ln)
198 { 198 {
199 std::vector<LLValue*> args; 199 LLSmallVector<LLValue*,3> args;
200 args.push_back(DtoConstUint(ln)); 200 args.push_back(DtoConstUint(ln));
201 args.push_back(DtoConstUint(0)); 201 args.push_back(DtoConstUint(0));
202 FuncDeclaration* fd = gIR->func()->decl; 202 FuncDeclaration* fd = gIR->func()->decl;
203 args.push_back(dbgToArrTy(DtoDwarfCompileUnit(fd->getModule()))); 203 args.push_back(dbgToArrTy(DtoDwarfCompileUnit(fd->getModule())));
204 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.stoppoint"), args.begin(), args.end()); 204 gIR->ir->CreateCall(gIR->module->getFunction("llvm.dbg.stoppoint"), args.begin(), args.end());