summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Signals.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc
index 112e40ea287..e03a1756c68 100644
--- a/llvm/lib/Support/Windows/Signals.inc
+++ b/llvm/lib/Support/Windows/Signals.inc
@@ -387,8 +387,10 @@ void sys::PrintStackTraceOnErrorSignal() {
}
}
+#ifdef __MINGW32__
// Provide a prototype for RtlCaptureContext, mingw32 is missing it.
extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
+#endif
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
@@ -422,7 +424,7 @@ void llvm::sys::SetInterruptFunction(void (*IF)()) {
/// AddSignalHandler - Add a function to be called when a signal is delivered
/// to the process. The handler can have a cookie passed to it to identify
/// what instance of the handler it is.
-void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
+void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
if (CallBacksToRun == 0)
CallBacksToRun = new std::vector<std::pair<void(*)(void*), void*> >();
CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie));
OpenPOWER on IntegriCloud