search for: handle_llvm_crash

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

2012 Jun 05
0
[LLVMdev] CrashRecoveryContext on Windows
...{ RaiseException(0, 0, 0, NULL); } void handle_llvm_fatal(void *User, const std::string &Reason) { std::cerr << "Caught LLVM ERROR: " << Reason << "\n"; abort(); // Chains to win_abort_handler on Windows } int main() { install_fatal_error_handler(handle_llvm_crash, NULL); signal(SIGABRT, win_abort_handler); _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); llvm_start_multithreaded(); ContextRecoveryContext::Enable(); // "safe" calls with RunSafely() ContextRecoveryContext::Disable(); return 0; } Do you think it is a...