Displaying 1 result from an estimated 1 matches for "throwsinttype".
2012 Dec 27
1
[LLVMdev] Throwing an exception from JITed code, and catching in C++
...rintf("could not create execution engine\n");
return 1;
}
Function* throwsIntFunction = ee->FindFunctionNamed("_Z8throwIntv");
if (!throwsIntFunction)
{
printf("could not find function\n");
return 1;
}
typedef void (*throwsIntType)();
throwsIntType throwsInt = reinterpret_cast(ee->getPointerToFunction(throwsIntFunction));
if (!throwsInt)
{
printf("could not get pointer to function\n");
return 1;
}
try
{
throwsInt();
}
catch (int ex)
{
printf(&q...