diff gen/statements.cpp @ 687:0a682c7805d2

Emit region.end debug calls before a throw.
author Christian Kamm <kamm incasoftware de>
date Sun, 12 Oct 2008 15:30:58 +0200
parents b411c41a9716
children 43165a082535
line wrap: on
line diff
--- a/gen/statements.cpp	Sun Oct 12 14:38:55 2008 +0200
+++ b/gen/statements.cpp	Sun Oct 12 15:30:58 2008 +0200
@@ -641,6 +641,9 @@
 
     assert(exp);
     DValue* e = exp->toElem(p);
+
+    if (global.params.symdebug) DtoDwarfFuncEnd(gIR->func()->decl);
+
     llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_throw_exception");
     //Logger::cout() << "calling: " << *fn << '\n';
     LLValue* arg = DtoBitCast(e->getRVal(), fn->getFunctionType()->getParamType(0));