summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32
Commit message (Collapse)AuthorAgeFilesLines
...
* Move DataTypes.h to include/llvm/System, update all users. This breaks the lastChandler Carruth2009-10-261-1/+1
| | | | | | direct inclusion edge from System to Support. llvm-svn: 85086
* ... 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
* Remove the GetProcessId() call from Win32/Program.inc, take 2.Mikhail Glushenkov2009-09-221-9/+23
| | | | | | | GetProcessId() was introduced only in Windows XP, and we want to support earlier versions. llvm-svn: 82548
* 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
* Revert "Get rid of GetProcessId in Win32/Program.inc.", this breaksDaniel Dunbar2009-09-221-17/+25
| | | | | | ExecuteAndWait. llvm-svn: 82522
* Get rid of GetProcessId in Win32/Program.inc.Mikhail Glushenkov2009-09-151-25/+17
| | | | | | | GetProcessId was introduced only in XP. As a bonus, this change makes Program objects copyable, since Program is now basically a PID. llvm-svn: 81826
* Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn'tDan Gohman2009-09-111-3/+7
| | | | | | | | | | | | | | | working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. llvm-svn: 81568
* Check that the 'kill' call succeeded.Mikhail Glushenkov2009-09-091-1/+6
| | | | | | Thanks to Duncan Sands for spotting this. llvm-svn: 81328
* Const-correctness.Mikhail Glushenkov2009-09-081-1/+1
| | | | llvm-svn: 81249
* Get rid of the Pid_ member in the Program class.Mikhail Glushenkov2009-09-081-14/+18
| | | | llvm-svn: 81247
* Add a Kill() function to the Program class.Mikhail Glushenkov2009-09-081-9/+20
| | | | llvm-svn: 81246
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-233-7/+6
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* improve win32 path support, patch by Baptiste Lepilleur!Chris Lattner2009-08-121-1/+2
| | | | llvm-svn: 78823
* Fix a race condition in getting the process exit code on Win32.Daniel Dunbar2009-08-031-5/+21
| | | | llvm-svn: 77953
* Empty arguments need to be quoted on Win32.Daniel Dunbar2009-08-021-3/+9
| | | | llvm-svn: 77913
* Don't use llvm_report_error in libSystem, this is a layering violation.Daniel Dunbar2009-07-261-2/+2
| | | | llvm-svn: 77169
* Re-committing r76828 with the JIT memory manager changes now that the buildReid Kleckner2009-07-231-3/+4
| | | | | | bots like the BumpPtrAllocator changes. llvm-svn: 76902
* Reverting r76825 and r76828, since they caused clang runtime errors and some ↵Reid Kleckner2009-07-231-4/+3
| | | | | | build failure involving memset. llvm-svn: 76838
* Make the JIT code emitter properly retry and ask for more memory when it runsReid Kleckner2009-07-231-3/+4
| | | | | | | | | | | | | out of memory, and also make the default memory manager allocate more memory when it runs out. Also, switch function stubs and global data over to using the BumpPtrAllocator. This makes it so the JIT no longer mmaps (or the equivalent on Windows) 16 MB of memory, and instead allocates in 512K slabs. I suspect this size could go lower, especially on embedded platforms, now that more slabs can be allocated. llvm-svn: 76828
* Remove duplication in Program::Execute{And,No}Wait.Mikhail Glushenkov2009-07-181-189/+35
| | | | | | | Implemented by moving the code out of static functions into methods of Program class. llvm-svn: 76340
* Use llvm_report_error, not llvm_unreachable.Daniel Dunbar2009-07-121-2/+2
| | | | llvm-svn: 75429
* Improve sys::Path::makeAbsolute on Win32.Daniel Dunbar2009-07-121-0/+23
| | | | | | | | - Patch by Viktor Kutuzov! - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths. llvm-svn: 75424
* eraseFromDisk no longer throws.Chris Lattner2009-07-091-4/+1
| | | | llvm-svn: 75139
* Add an ExecuteNoWait interface to support asynchronous process spawning.David Greene2009-07-081-0/+165
| | | | llvm-svn: 75055
* remove two methods that no longer exist.Chris Lattner2009-07-081-24/+0
| | | | llvm-svn: 74982
* more getting windows to build.Chris Lattner2009-07-081-14/+7
| | | | llvm-svn: 74981
* hopefully fix the build on windows.Chris Lattner2009-07-081-0/+1
| | | | llvm-svn: 74977
* Fixed assert that checks return value of TlsSetValue.Oscar Fuentes2009-06-301-1/+1
| | | | | | | | See http://msdn.microsoft.com/en-us/library/ms686818(VS.85).aspx Patch by Olaf Krzikalla! llvm-svn: 74526
* Fix error in the Win32 implementation pointed out by Howard Su.Owen Anderson2009-06-261-1/+1
| | | | llvm-svn: 74248
* Add support for const thread locals.Owen Anderson2009-06-251-2/+2
| | | | llvm-svn: 74226
* Add a class for supporting platform independent thread-local storage.Owen Anderson2009-06-251-0/+49
| | | | | | Windows people, please double-check/patch this. llvm-svn: 74209
* Guard dynamic library loading.Owen Anderson2009-06-251-4/+15
| | | | | | | I did my best at implementing this for Win32, but I don't have a way to test it. Can someone with access to a Win32 machine test/fix this? llvm-svn: 74188
* Give RWMutex the SmartRWMutex treatment too.Owen Anderson2009-06-181-6/+6
| | | | llvm-svn: 73710
* Insert a SmartMutex templated class into the class hierarchy, which takes a ↵Owen Anderson2009-06-181-5/+5
| | | | | | | | template parameter specifying whether this mutex should become a no-op when not running in multithreaded mode. Make sys::Mutex a typedef of SmartMutex<false>, to preserve source compatibility. llvm-svn: 73709
* Improve the Win32 reader-writer lock implementation by making it just a normalOwen Anderson2009-06-171-6/+14
| | | | | | | | | lock. This is obviously bad, but at least it's threadsafe! If you know how to improve this in a pre-Vista friendly well, patches welcome! Patch by Max Burke. llvm-svn: 73607
* Accidentally broke this file.Owen Anderson2009-06-161-1/+1
| | | | llvm-svn: 73552
* Remove the Win32 implementation, since it doesn't compile pre-Vista.Owen Anderson2009-06-161-12/+7
| | | | llvm-svn: 73550
* Add a portable wrapper for reader-writer locks.Owen Anderson2009-06-162-1/+56
| | | | llvm-svn: 73545
* "This patch implements the method with the GetModuleFileName function for ↵Chris Lattner2009-06-151-1/+3
| | | | | | | | windows." Patch by Benjamin Kramer! llvm-svn: 73379
* add a new static method to portably determine whether a patch isChris Lattner2009-06-151-0/+14
| | | | | | absolute or not, based on a patch by Gregory Curfman! llvm-svn: 73368
* Fix comments.Torok Edwin2009-06-041-1/+2
| | | | llvm-svn: 72858
* Add support for outputting ANSI colors to raw_fd_ostream.Torok Edwin2009-06-041-0/+66
| | | | llvm-svn: 72854
* Add terminal width detection to llvm::sys::Process. This is needed toDouglas Gregor2009-05-111-0/+16
| | | | | | fix Clang PRs 4148 and 4183. llvm-svn: 71448
* Fix choice of version of Windows callback to use to consider not only the ↵Stefanus Du Toit2009-04-281-1/+12
| | | | | | | | Visual Studio version, but also the Windows SDK version. Patch by Tareq Siraj. llvm-svn: 70299
* Silence warnings.Anton Korobeynikov2009-04-211-5/+5
| | | | | | Patch by Jay Foad! llvm-svn: 69679
* Drop obsolete reference to __eprintf.Anton Korobeynikov2009-04-211-2/+0
| | | | | | Patch by Jay Foad! llvm-svn: 69678
* Call CreateProcess with bInheritHandles = TRUE.Mikhail Glushenkov2009-04-141-1/+1
| | | | | | | | Makes llvmc show error messages printed by child processes when run from the Cygwin/MSYS shell. Since ExecuteAndWait does not return until the child program has finished execution, this change should be harmless. llvm-svn: 69082
* Delete trailing whitespace.Mikhail Glushenkov2009-04-141-13/+13
| | | | llvm-svn: 69081
* hopefully fix an apparent build error on windows.Chris Lattner2009-04-011-0/+1
| | | | llvm-svn: 68175
OpenPOWER on IntegriCloud