Displaying 1 result from an estimated 1 matches for "script_cod".
Did you mean:
script_code
2010 Oct 26
3
[LLVMdev] Throwing C++ exception through LLVM JITed code
...uedo code. I want
the exception thrown in intrinsic_function(), which is called from the LLVM
compiled code, to be caught by the exception handler at the bottom of
run_program().
void intrinsic_function() {
throw runtime_error("unimplemented function");
}
void run_program() {
char *script_code = "call intrinsic_function();";
try {
myFunction = compile(script_code);
Engine->runFunction(myFunction);
} catch (...) {
// This is never reached.
}
}
I suspect this is not going to be possible unless somehow GCC and LLVM used
the same stack structure so that the...