summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-11 15:41:15 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-11 15:41:15 +0000
commitf97eff66012aa59780f0287c40af5d6cf51bf839 (patch)
tree2a784eb94074b2efb8534dd551054edf861973c6 /llvm/lib/Support
parent2ce1ea86d0b30436110972f5d5f0814094027a97 (diff)
downloadbcm5719-llvm-f97eff66012aa59780f0287c40af5d6cf51bf839.tar.gz
bcm5719-llvm-f97eff66012aa59780f0287c40af5d6cf51bf839.zip
RtlCaptureContext is absent from the mingw32 headers, provide a prototype.
llvm-svn: 231929
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Signals.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc
index 497fa4359fc..4f0848ae512 100644
--- a/llvm/lib/Support/Windows/Signals.inc
+++ b/llvm/lib/Support/Windows/Signals.inc
@@ -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);
OpenPOWER on IntegriCloud