summaryrefslogtreecommitdiffstats
path: root/lib/System/Win32/Signals.inc
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-08 02:10:34 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-08 02:10:34 +0000
commitfb89e08413878571c1c1fc6ff15cdbf5cd8692dc (patch)
treeeb989a1df580b7372a8a6923709b03c242336664 /lib/System/Win32/Signals.inc
parent59dc60337fb9c02c4fbec3b44d7275a32bafa775 (diff)
downloadexternal_llvm-fb89e08413878571c1c1fc6ff15cdbf5cd8692dc.zip
external_llvm-fb89e08413878571c1c1fc6ff15cdbf5cd8692dc.tar.gz
external_llvm-fb89e08413878571c1c1fc6ff15cdbf5cd8692dc.tar.bz2
Add llvm::sys::RunInterruptHandlers(), which runs the registered SIGINT cleanup
stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Signals.inc')
-rw-r--r--lib/System/Win32/Signals.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/System/Win32/Signals.inc b/lib/System/Win32/Signals.inc
index f2b72ca..a3a393c 100644
--- a/lib/System/Win32/Signals.inc
+++ b/lib/System/Win32/Signals.inc
@@ -189,6 +189,10 @@ static void Cleanup() {
LeaveCriticalSection(&CriticalSection);
}
+void llvm::sys::RunInterruptHandlers() {
+ Cleanup();
+}
+
static LONG WINAPI LLVMUnhandledExceptionFilter(LPEXCEPTION_POINTERS ep) {
try {
Cleanup();