forked from OSchip/llvm-project
RtlCaptureContext is absent from the mingw32 headers, provide a prototype.
llvm-svn: 231929
This commit is contained in:
parent
2ce1ea86d0
commit
f97eff6601
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue