summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Signals.inc
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-291-326/+0
| | | | llvm-svn: 120298
* Reindent.Mikhail Glushenkov2010-10-281-71/+71
| | | | llvm-svn: 117538
* 80-col violation.Mikhail Glushenkov2010-10-271-1/+2
| | | | llvm-svn: 117443
* Remove try/catch(...) from Win32/Signals.inc.Mikhail Glushenkov2010-10-271-6/+1
| | | | | | | | | | | | | | | | | | | | catch(...) is used in Win32/Signals.inc for catching Win32 structured exceptions, but according to [1], this is wrong. We can't simply change try/catch to __try/__finally, since this syntax is not supported by MinGW. We can use __try/__finally on MSVC and __try1/__except1 macros on MinGW [2], but I think that that solution obfuscates the code too much. The use of try/catch(...) in Signals.inc makes it impossible to link MinGW-compiled libSystem with llvm-gcc compiled executables. I propose that we just remove try/catch(...) from Signals.inc, since the meaning of the code won't change. [1] http://members.cox.net/doug_web/eh.htm [2] http://article.gmane.org/gmane.comp.compilers.llvm.cvs/81315 llvm-svn: 117442
* Win32/Signals.inc: DontRemoveFileOnSignal(): Please acquire the CriticalSection.NAKAMURA Takumi2010-10-221-0/+2
| | | | | | It choked BugPoint on Mingw. llvm-svn: 117083
* Trailing whitespace.Mikhail Glushenkov2010-10-211-5/+5
| | | | llvm-svn: 117058
* lib/System/Win32/Signals.inc: Enable LLVM_DISABLE_CRT_DEBUG also on mingw.NAKAMURA Takumi2010-10-061-6/+2
| | | | llvm-svn: 115731
* Add an interface for unregistering a file from the FilesToRemove list.Dan Gohman2010-09-011-0/+14
| | | | llvm-svn: 112705
* Convert some tab stops into spaces.Duncan Sands2010-07-121-1/+1
| | | | llvm-svn: 108130
* Add llvm::sys::RunInterruptHandlers(), which runs the registered SIGINT cleanupDaniel Dunbar2010-05-081-0/+4
| | | | | | stuff. llvm-svn: 103333
* AddSignalHandler was not releasing the critical section on win32.Torok Edwin2010-03-311-0/+1
| | | | | | Patch from Gianluigi Tiesi! llvm-svn: 100003
* ... missed hiding a variable for MSVC only.Daniel Dunbar2009-09-221-0/+2
| | | | llvm-svn: 82552
* Hide MSVC specific CRT interaction behind _MSC_VER.Daniel Dunbar2009-09-221-1/+7
| | | | llvm-svn: 82551
* Add a magic LLVM_DISABLE_CRT_DEBUG environment variable which we check in ↵Daniel Dunbar2009-09-221-1/+39
| | | | | | | | RegisterHandler and use to disable the Win32 crash dialogs. These are a major blocker to any kind of automated testing. Also, tweak the 'lit' test runner to set this variable unconditionally. llvm-svn: 82537
* eraseFromDisk no longer throws.Chris Lattner2009-07-091-4/+1
| | | | llvm-svn: 75139
* Silence warnings.Anton Korobeynikov2009-04-211-5/+5
| | | | | | Patch by Jay Foad! llvm-svn: 69679
* Fix the Win32 VS2008 build:Sebastian Redl2009-03-191-10/+12
| | | | | | | | | | - Make type declarations match the struct/class keyword of the definition. - Move AddSignalHandler into the namespace where it belongs. - Correctly call functions from template base. - Some other small changes. With this patch, LLVM and Clang should build properly and with far less noise under VS2008. llvm-svn: 67347
* add some explicit llvm:: qualifiers to the unix side, fix problems on the ↵Chris Lattner2009-03-081-2/+2
| | | | | | windows side. llvm-svn: 66386
* Add a new 'AddSignalHandler' function to Signals.h that allowsChris Lattner2009-03-041-41/+15
| | | | | | | | | | | | | arbitrary functions to be run when a crash happens. Delete RemoveDirectoryOnSignal as it is dead and has never had clients. Change PrintStackTraceOnErrorSignal to be implemented in terms of AddSignalHandler. I updated the Win32 versions of these APIs, but can't test them. If there are any problems, I'd be happy to fix them as well. llvm-svn: 66072
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* This change does a couple of things. First it gets the Visual Studio builds ↵Chuck Rose III2007-11-211-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | working. I added the lexing files to the VStudio projects and removed the .l files from the VStudio projects. There was a problem with use of strtoll in TGLexer.cpp and Chris suggested switching to strtol, so that's included here. Additionally, this checkin adds minimal x64 builds to the VStudio builds. Build issues related to x64 in the windows specific files for DynamicLibrary.inc and Singals.inc are worked around, but not ultimately solved. Binaries used to be stored in ...\win32\{Debug|Release} but are now kept in ...\win32\bin\{win32|x64}\{Debug|Release} intermediate files will continue to be stored in the individual project directories under win32. Some names will likely change in the future to reflect that the vstudio projects are no longer 32-bit only, but I wanted to get things up and running today so kept away from bigger restructuring. llvm-svn: 44260
* Unbreak VC++ build.Jeff Cohen2007-04-071-4/+7
| | | | llvm-svn: 35751
* For PR789:Reid Spencer2007-03-291-2/+4
| | | | | | | | Make the sys::Path::getFileStatus function more efficient by having it return a pointer to the FileStatus structure rather than copy it. Adjust uses of the function accordingly. Also, fix some memory issues in sys::Path. llvm-svn: 35476
* For PR797:Reid Spencer2006-08-251-8/+19
| | | | | | | Make the Win32 code exception free (untested/uncompiled) which forced some interface changes which had ripple effect. This should be the last of 797. llvm-svn: 29884
* Use getFileStatus instead of Path::isDirectory().Chris Lattner2006-08-011-6/+8
| | | | llvm-svn: 29443
* Provide configuration support and usage for MINGW32 platformReid Spencer2006-06-011-4/+10
| | | | llvm-svn: 28639
* It's dangerous coding on Mondays.Jeff Cohen2005-08-021-8/+5
| | | | llvm-svn: 22585
* Implement SetInterruptFunction for Windows.Jeff Cohen2005-08-021-1/+25
| | | | llvm-svn: 22582
* Implement sys::SetInterruptFunction on Unix, stub it on win32 so that theChris Lattner2005-08-021-0/+4
| | | | | | build will not fail llvm-svn: 22578
* Make Win32 implementation conform to new paradigmJeff Cohen2005-07-081-2/+2
| | | | llvm-svn: 22356
* Fix VC++ breakageJeff Cohen2005-07-081-2/+2
| | | | llvm-svn: 22353
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-051-1/+0
| | | | llvm-svn: 21704
* Change __MINGW to __MINGW32__. Patch submitted by Henrik Bach.Jeff Cohen2005-02-191-1/+1
| | | | llvm-svn: 20243
* Rename Unix/*.cpp and Win32/*.cpp to have a *.inc suffix so that the sillyReid Spencer2005-01-091-0/+239
gdb debugger doesn't get confused on which file it is reading (the one in lib/System or the one in lib/System/{Win32,Unix}) llvm-svn: 19426
OpenPOWER on IntegriCloud