diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-09-24 08:14:45 -0400 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-09-24 08:21:43 -0400 |
commit | f5314d15af4f4514103ea12c74cb208538b8bef5 (patch) | |
tree | 446c418e4b8034d031609091307c9e72b4738264 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b3418cb4eb1456c41606f4621dcfa362fe54183c (diff) | |
download | llvm-f5314d15af4f4514103ea12c74cb208538b8bef5.zip llvm-f5314d15af4f4514103ea12c74cb208538b8bef5.tar.gz llvm-f5314d15af4f4514103ea12c74cb208538b8bef5.tar.bz2 |
[Support] On Unix, let the CrashRecoveryContext return the signal code
Before this patch, the CrashRecoveryContext was returning -2 upon a signal, like ExecuteAndWait does. This didn't match the behavior on Windows, where the the exception code was returned.
We now return the signal's code, which optionally allows for re-throwing the signal later. Doing so requires all custom handlers to be removed first, through llvm::sys::unregisterHandlers() which we made a public API.
This is part of https://reviews.llvm.org/D70378
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions