summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* Minor code simplification.Dan Gohman2009-08-051-4/+2
| | | | llvm-svn: 78239
* Update a comment to reflect the current code.Dan Gohman2009-08-051-1/+2
| | | | llvm-svn: 78215
* Remove needless uses of std::flush in the parent process after aDan Gohman2009-08-051-7/+0
| | | | | | | fork call. This eliminates a need for <iostream>. Also remove needless fsync calls. llvm-svn: 78131
* Use _exit rather than exit in the child process after a failed exec.Dan Gohman2009-08-051-3/+7
| | | | | | Add a comment explaining why. llvm-svn: 78128
* Follow Unix behavior and return 127 if the command is not found,Dan Gohman2009-08-041-1/+1
| | | | | | and 126 if it is not executable. llvm-svn: 78120
* When exec() fails, return 127 instead of errno; the parent process has no way toDaniel Dunbar2009-08-041-3/+3
| | | | | | | distinguish that the result is errno, so it can't use it to provide more information about the error (it also exposes the numeric value of errno). llvm-svn: 78098
* Fix a race condition in getting the process exit code on Win32.Daniel Dunbar2009-08-032-5/+25
| | | | llvm-svn: 77953
* Empty arguments need to be quoted on Win32.Daniel Dunbar2009-08-021-3/+9
| | | | llvm-svn: 77913
* eXtensible Systems doesn't exist any more and Reid donated this to theChris Lattner2009-08-011-6/+0
| | | | | | project under the normal license, yay. :) llvm-svn: 77823
* Remove another F_OK.Dan Gohman2009-07-291-1/+1
| | | | llvm-svn: 77405
* On "Unix", if Program::FindProgramByName is given a name containingDan Gohman2009-07-281-1/+1
| | | | | | | slashes, just go with it, regardless of whether it looks like it will be executable. This follows the behavior of sh(1) more closely. llvm-svn: 77396
* It isn't necessary to use F_OK when using R_OK or similar.Dan Gohman2009-07-281-2/+2
| | | | llvm-svn: 77392
* Fix a fixme; don't take binaries from the working directory.Benjamin Kramer2009-07-281-3/+3
| | | | | | | This fixes clang on non-darwin platforms if a file called 'ld' or 'as' is in the working directory. Based on patch by Pawel Worach! llvm-svn: 77379
* CMake: make sure that the *.inc files for libSystem show up in the resulting Douglas Gregor2009-07-271-0/+23
| | | | | | project. llvm-svn: 77213
* 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-232-6/+8
| | | | | | bots like the BumpPtrAllocator changes. llvm-svn: 76902
* Reverting r76825 and r76828, since they caused clang runtime errors and some ↵Reid Kleckner2009-07-232-8/+6
| | | | | | build failure involving memset. llvm-svn: 76838
* Make the JIT code emitter properly retry and ask for more memory when it runsReid Kleckner2009-07-232-6/+8
| | | | | | | | | | | | | 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-183-276/+91
| | | | | | | Implemented by moving the code out of static functions into methods of Program class. llvm-svn: 76340
* Trailing whitespace.Mikhail Glushenkov2009-07-171-15/+15
| | | | llvm-svn: 76229
* Lexically order files in CMakeLists.txt files.Ted Kremenek2009-07-151-1/+1
| | | | llvm-svn: 75831
* 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-123-12/+37
| | | | | | | | - Patch by Viktor Kutuzov! - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths. llvm-svn: 75424
* "UNIX paths can contain non-ASCII characters, so Path::isValid() should not ↵Chris Lattner2009-07-121-9/+1
| | | | | | | | reject paths with such characters in them. The attached patch removes the check from Path::isValid()." patch by Benjamin Kramer! llvm-svn: 75421
* 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-082-0/+237
| | | | 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
* Eliminate the static constructors and locks from DynamicLibrary.cpp.Chris Lattner2009-07-071-26/+27
| | | | | | | | | | | | | | | | | | This fixes PR4512 and eliminating static ctors is always good. Losing thread safety is unfortunate, but the code is just incredibly poorly designed. If someone is interested, the "right" solution is to split DynamicLibrary.cpp into two separate pieces: a stateless piece in libsystem, and a simple support file in libsupport that has the "state" (e.g. AddSymbol) in managed static objects. Doing this would both fix memory leaks we already have, as well as make the code thread safe again. it would also make sense to move all the unix specific code in System/DynamicLibrary.cpp into System/Unix/DynamicLibrary.inc. llvm-svn: 74927
* remove dead code, noone creates instances of "DynamicLibrary", so the ctor ↵Chris Lattner2009-07-071-10/+1
| | | | | | and dtor are dead. llvm-svn: 74926
* we don't use libtool anymore, update comments.Chris Lattner2009-07-071-12/+2
| | | | llvm-svn: 74924
* No need to double-include config.hOwen Anderson2009-07-061-1/+1
| | | | llvm-svn: 74854
* We need to include config.h to get the proper setting to LLVM_MULTITHREADED.Owen Anderson2009-07-061-0/+1
| | | | | | Patch by Xerxes Ranby. llvm-svn: 74846
* improve portability to windows, patch by Xerces Ranby!Chris Lattner2009-07-061-1/+1
| | | | llvm-svn: 74835
* Oops, I #included errno.h from inside the llvm::sys namespace.Jeffrey Yasskin2009-07-061-1/+4
| | | | llvm-svn: 74834
* Fix windows build, patch by Howard Su.Duncan Sands2009-07-021-2/+2
| | | | llvm-svn: 74697
* Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes theJeffrey Yasskin2009-07-013-26/+74
| | | | | | | | Windows variant, strerror_s, but I couldn't test that. I'll update configure and config.h.in in a subsequent patch. llvm-svn: 74621
* Try again at making this work on OpenBSD.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74612
* Fix the build on OpenBSD.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74597
* 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 compilation without pthreads.Owen Anderson2009-06-261-3/+3
| | | | | | Patch by Xerxes Ranby. llvm-svn: 74283
* Fix unused variable warnings.Daniel Dunbar2009-06-261-0/+3
| | | | llvm-svn: 74250
* 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-252-6/+6
| | | | llvm-svn: 74226
* Fix typo in assertion.Owen Anderson2009-06-251-1/+1
| | | | llvm-svn: 74225
* Add a configure test for pthread_getspecific, and use it when building ↵Owen Anderson2009-06-251-1/+1
| | | | | | ThreadLocal. llvm-svn: 74222
* Update cmake build files.Owen Anderson2009-06-251-0/+1
| | | | llvm-svn: 74210
* Add a class for supporting platform independent thread-local storage.Owen Anderson2009-06-253-0/+151
| | | | | | Windows people, please double-check/patch this. llvm-svn: 74209
* Guard dynamic library loading.Owen Anderson2009-06-252-13/+36
| | | | | | | 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
OpenPOWER on IntegriCloud