mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Wrap in __MINGW32__ to avoid warnings from msvc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -387,8 +387,10 @@ void sys::PrintStackTraceOnErrorSignal() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __MINGW32__
|
||||||
// Provide a prototype for RtlCaptureContext, mingw32 is missing it.
|
// Provide a prototype for RtlCaptureContext, mingw32 is missing it.
|
||||||
extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
|
extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
|
||||||
|
#endif
|
||||||
|
|
||||||
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
|
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
|
/// 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
|
/// to the process. The handler can have a cookie passed to it to identify
|
||||||
/// what instance of the handler it is.
|
/// 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)
|
if (CallBacksToRun == 0)
|
||||||
CallBacksToRun = new std::vector<std::pair<void(*)(void*), void*> >();
|
CallBacksToRun = new std::vector<std::pair<void(*)(void*), void*> >();
|
||||||
CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie));
|
CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie));
|
||||||
|
Reference in New Issue
Block a user