search for: throwsintfunction

Displaying 1 result from an estimated 1 matches for "throwsintfunction".

2012 Dec 27
1
[LLVMdev] Throwing an exception from JITed code, and catching in C++
...bc", error, context); if (!m) { printf("could not load module\n"); return 1; } ExecutionEngine* ee = ExecutionEngine::create(m); if (!ee) { printf("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))...