mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
Emit region.end debug calls before a throw.
This commit is contained in:
parent
b413b9aa54
commit
1e825d057a
1 changed files with 3 additions and 0 deletions
|
@ -641,6 +641,9 @@ void ThrowStatement::toIR(IRState* p)
|
||||||
|
|
||||||
assert(exp);
|
assert(exp);
|
||||||
DValue* e = exp->toElem(p);
|
DValue* e = exp->toElem(p);
|
||||||
|
|
||||||
|
if (global.params.symdebug) DtoDwarfFuncEnd(gIR->func()->decl);
|
||||||
|
|
||||||
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_throw_exception");
|
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_throw_exception");
|
||||||
//Logger::cout() << "calling: " << *fn << '\n';
|
//Logger::cout() << "calling: " << *fn << '\n';
|
||||||
LLValue* arg = DtoBitCast(e->getRVal(), fn->getFunctionType()->getParamType(0));
|
LLValue* arg = DtoBitCast(e->getRVal(), fn->getFunctionType()->getParamType(0));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue