llvm.org GIT mirror llvm / d547708
Run interrupt routines as part of report_fatal_error, since we are failing ungracefully. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103334 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1515 #include "llvm/Support/Debug.h"
1616 #include "llvm/Support/ErrorHandling.h"
1717 #include "llvm/Support/raw_ostream.h"
18 #include "llvm/System/Signals.h"
1819 #include "llvm/System/Threading.h"
1920 #include
2021 #include
5152 } else {
5253 ErrorHandler(ErrorHandlerUserData, reason.str());
5354 }
55
56 // If we reached here, we are failing ungracefully. Run the interrupt handlers
57 // to make sure any special cleanups get done, in particular that we remove
58 // files registered with RemoveFileOnSignal.
59 sys::RunInterruptHandlers();
60
5461 exit(1);
5562 }
5663