| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Minor code simplification. | Dan Gohman | 2009-08-05 | 1 | -4/+2 |
| | | | | | llvm-svn: 78239 | ||||
| * | Update a comment to reflect the current code. | Dan Gohman | 2009-08-05 | 1 | -1/+2 |
| | | | | | llvm-svn: 78215 | ||||
| * | Remove needless uses of std::flush in the parent process after a | Dan Gohman | 2009-08-05 | 1 | -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 Gohman | 2009-08-05 | 1 | -3/+7 |
| | | | | | | | Add a comment explaining why. llvm-svn: 78128 | ||||
| * | Follow Unix behavior and return 127 if the command is not found, | Dan Gohman | 2009-08-04 | 1 | -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 to | Daniel Dunbar | 2009-08-04 | 1 | -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 Dunbar | 2009-08-03 | 2 | -5/+25 |
| | | | | | llvm-svn: 77953 | ||||
| * | Empty arguments need to be quoted on Win32. | Daniel Dunbar | 2009-08-02 | 1 | -3/+9 |
| | | | | | llvm-svn: 77913 | ||||
| * | eXtensible Systems doesn't exist any more and Reid donated this to the | Chris Lattner | 2009-08-01 | 1 | -6/+0 |
| | | | | | | | project under the normal license, yay. :) llvm-svn: 77823 | ||||
| * | Remove another F_OK. | Dan Gohman | 2009-07-29 | 1 | -1/+1 |
| | | | | | llvm-svn: 77405 | ||||
| * | On "Unix", if Program::FindProgramByName is given a name containing | Dan Gohman | 2009-07-28 | 1 | -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 Gohman | 2009-07-28 | 1 | -2/+2 |
| | | | | | llvm-svn: 77392 | ||||
| * | Fix a fixme; don't take binaries from the working directory. | Benjamin Kramer | 2009-07-28 | 1 | -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 Gregor | 2009-07-27 | 1 | -0/+23 |
| | | | | | | | project. llvm-svn: 77213 | ||||
| * | Don't use llvm_report_error in libSystem, this is a layering violation. | Daniel Dunbar | 2009-07-26 | 1 | -2/+2 |
| | | | | | llvm-svn: 77169 | ||||
| * | Re-committing r76828 with the JIT memory manager changes now that the build | Reid Kleckner | 2009-07-23 | 2 | -6/+8 |
| | | | | | | | bots like the BumpPtrAllocator changes. llvm-svn: 76902 | ||||
| * | Reverting r76825 and r76828, since they caused clang runtime errors and some ↵ | Reid Kleckner | 2009-07-23 | 2 | -8/+6 |
| | | | | | | | build failure involving memset. llvm-svn: 76838 | ||||
| * | Make the JIT code emitter properly retry and ask for more memory when it runs | Reid Kleckner | 2009-07-23 | 2 | -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 Glushenkov | 2009-07-18 | 3 | -276/+91 |
| | | | | | | | | Implemented by moving the code out of static functions into methods of Program class. llvm-svn: 76340 | ||||
| * | Trailing whitespace. | Mikhail Glushenkov | 2009-07-17 | 1 | -15/+15 |
| | | | | | llvm-svn: 76229 | ||||
| * | Lexically order files in CMakeLists.txt files. | Ted Kremenek | 2009-07-15 | 1 | -1/+1 |
| | | | | | llvm-svn: 75831 | ||||
| * | Use llvm_report_error, not llvm_unreachable. | Daniel Dunbar | 2009-07-12 | 1 | -2/+2 |
| | | | | | llvm-svn: 75429 | ||||
| * | Improve sys::Path::makeAbsolute on Win32. | Daniel Dunbar | 2009-07-12 | 3 | -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 Lattner | 2009-07-12 | 1 | -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 Lattner | 2009-07-09 | 1 | -4/+1 |
| | | | | | llvm-svn: 75139 | ||||
| * | Add an ExecuteNoWait interface to support asynchronous process spawning. | David Greene | 2009-07-08 | 2 | -0/+237 |
| | | | | | llvm-svn: 75055 | ||||
| * | remove two methods that no longer exist. | Chris Lattner | 2009-07-08 | 1 | -24/+0 |
| | | | | | llvm-svn: 74982 | ||||
| * | more getting windows to build. | Chris Lattner | 2009-07-08 | 1 | -14/+7 |
| | | | | | llvm-svn: 74981 | ||||
| * | hopefully fix the build on windows. | Chris Lattner | 2009-07-08 | 1 | -0/+1 |
| | | | | | llvm-svn: 74977 | ||||
| * | Eliminate the static constructors and locks from DynamicLibrary.cpp. | Chris Lattner | 2009-07-07 | 1 | -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 Lattner | 2009-07-07 | 1 | -10/+1 |
| | | | | | | | and dtor are dead. llvm-svn: 74926 | ||||
| * | we don't use libtool anymore, update comments. | Chris Lattner | 2009-07-07 | 1 | -12/+2 |
| | | | | | llvm-svn: 74924 | ||||
| * | No need to double-include config.h | Owen Anderson | 2009-07-06 | 1 | -1/+1 |
| | | | | | llvm-svn: 74854 | ||||
| * | We need to include config.h to get the proper setting to LLVM_MULTITHREADED. | Owen Anderson | 2009-07-06 | 1 | -0/+1 |
| | | | | | | | Patch by Xerxes Ranby. llvm-svn: 74846 | ||||
| * | improve portability to windows, patch by Xerces Ranby! | Chris Lattner | 2009-07-06 | 1 | -1/+1 |
| | | | | | llvm-svn: 74835 | ||||
| * | Oops, I #included errno.h from inside the llvm::sys namespace. | Jeffrey Yasskin | 2009-07-06 | 1 | -1/+4 |
| | | | | | llvm-svn: 74834 | ||||
| * | Fix windows build, patch by Howard Su. | Duncan Sands | 2009-07-02 | 1 | -2/+2 |
| | | | | | llvm-svn: 74697 | ||||
| * | Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes the | Jeffrey Yasskin | 2009-07-01 | 3 | -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 Anderson | 2009-07-01 | 1 | -1/+1 |
| | | | | | llvm-svn: 74612 | ||||
| * | Fix the build on OpenBSD. | Owen Anderson | 2009-07-01 | 1 | -1/+1 |
| | | | | | llvm-svn: 74597 | ||||
| * | Fixed assert that checks return value of TlsSetValue. | Oscar Fuentes | 2009-06-30 | 1 | -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 Anderson | 2009-06-26 | 1 | -3/+3 |
| | | | | | | | Patch by Xerxes Ranby. llvm-svn: 74283 | ||||
| * | Fix unused variable warnings. | Daniel Dunbar | 2009-06-26 | 1 | -0/+3 |
| | | | | | llvm-svn: 74250 | ||||
| * | Fix error in the Win32 implementation pointed out by Howard Su. | Owen Anderson | 2009-06-26 | 1 | -1/+1 |
| | | | | | llvm-svn: 74248 | ||||
| * | Add support for const thread locals. | Owen Anderson | 2009-06-25 | 2 | -6/+6 |
| | | | | | llvm-svn: 74226 | ||||
| * | Fix typo in assertion. | Owen Anderson | 2009-06-25 | 1 | -1/+1 |
| | | | | | llvm-svn: 74225 | ||||
| * | Add a configure test for pthread_getspecific, and use it when building ↵ | Owen Anderson | 2009-06-25 | 1 | -1/+1 |
| | | | | | | | ThreadLocal. llvm-svn: 74222 | ||||
| * | Update cmake build files. | Owen Anderson | 2009-06-25 | 1 | -0/+1 |
| | | | | | llvm-svn: 74210 | ||||
| * | Add a class for supporting platform independent thread-local storage. | Owen Anderson | 2009-06-25 | 3 | -0/+151 |
| | | | | | | | Windows people, please double-check/patch this. llvm-svn: 74209 | ||||
| * | Guard dynamic library loading. | Owen Anderson | 2009-06-25 | 2 | -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 | ||||

