search for: handle_llvm_fat

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

Did you mean: handle_llvm_fatal
2012 Jun 05
0
[LLVMdev] CrashRecoveryContext on Windows
...for catching abort(), and consequently, assert(). One solution is to create a custom abort() handler that calls RaiseException(), which will be caught by the handler in CrashRecoveryContext. The relevant client-side code is: void win_abort_handler(int) { 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_han...