RtlCaptureContext is absent from the mingw32 headers, provide a prototype.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2015-03-11 15:41:15 +00:00
parent c2e4231627
commit 20f78d477e

View File

@ -385,6 +385,10 @@ void sys::PrintStackTraceOnErrorSignal() {
RegisterHandler();
LeaveCriticalSection(&CriticalSection);
}
}
// Provide a prototype for RtlCaptureContext, mingw32 is missing it.
extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
@ -425,7 +429,6 @@ void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
RegisterHandler();
LeaveCriticalSection(&CriticalSection);
}
}
static void Cleanup() {
EnterCriticalSection(&CriticalSection);