mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 02:47:10 +00:00
Remove name space pollution from Signals.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fb9f75fc3
commit
c295532b90
@ -29,7 +29,6 @@
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
using namespace sys;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//=== WARNING: Implementation here must contain only TRULY operating system
|
||||
|
@ -59,7 +59,7 @@ using namespace llvm;
|
||||
|
||||
static RETSIGTYPE SignalHandler(int Sig); // defined below.
|
||||
|
||||
static ManagedStatic<SmartMutex<true> > SignalsMutex;
|
||||
static ManagedStatic<sys::SmartMutex<true> > SignalsMutex;
|
||||
|
||||
/// InterruptFunction - The function to call if ctrl-c is pressed.
|
||||
static void (*InterruptFunction)() = nullptr;
|
||||
@ -219,7 +219,7 @@ static RETSIGTYPE SignalHandler(int Sig) {
|
||||
sigprocmask(SIG_UNBLOCK, &SigMask, nullptr);
|
||||
|
||||
{
|
||||
unique_lock<SmartMutex<true>> Guard(*SignalsMutex);
|
||||
unique_lock<sys::SmartMutex<true>> Guard(*SignalsMutex);
|
||||
RemoveFilesToRemove();
|
||||
|
||||
if (std::find(std::begin(IntSigs), std::end(IntSigs), Sig)
|
||||
@ -458,7 +458,7 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS) {
|
||||
}
|
||||
|
||||
static void PrintStackTraceSignalHandler(void *) {
|
||||
PrintStackTrace(llvm::errs());
|
||||
sys::PrintStackTrace(llvm::errs());
|
||||
}
|
||||
|
||||
void llvm::sys::DisableSystemDialogsOnCrash() {}
|
||||
|
@ -776,7 +776,7 @@ static LONG WINAPI LLVMUnhandledExceptionFilter(LPEXCEPTION_POINTERS ep) {
|
||||
// the nasty sorts of crashes that aren't 100% reproducible from a set of
|
||||
// inputs (or in the event that the user is unable or unwilling to provide a
|
||||
// reproducible case).
|
||||
if (!llvm::Process::AreCoreFilesPrevented()) {
|
||||
if (!llvm::sys::Process::AreCoreFilesPrevented()) {
|
||||
MINIDUMP_EXCEPTION_INFORMATION ExceptionInfo;
|
||||
ExceptionInfo.ThreadId = ::GetCurrentThreadId();
|
||||
ExceptionInfo.ExceptionPointers = ep;
|
||||
|
Loading…
x
Reference in New Issue
Block a user