summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-implemented Path::createDirectoryOnDisk (for Unix).Ted Kremenek2008-04-031-32/+39
| | | | | | | | | | | | | | | | | | | | | | | | This method allows one to create a directory, and optionally create all parent directories that do not exist. The original implementation would require that *all* directories along a path are writable by the user, including directories that already exist. For example, suppose we wanted to create the directory "/tmp/foo/bar", and the directory "/tmp" already exists, but not "/tmp/foo". Since "/tmp" is writable by all users, the original implementation would work, and create "/tmp/foo", followed by "/tmp/bar". A problem occurred, however if one wanted to created the directory "/Users/myuser/bar" (or equivalently "/home/myuser/bar"), and "/Users/myuser" already existed and is writable by the current user. The directory "/User/myuser" is writable by the user, but "/User" is not. The original implementation of createDirectoryOnDisk would return with failure since "/User" is not writable, even though "/User/mysuser" is writable. The new implementation works by recursively creating parents as needed, and thus doesn't need to check the permissions on every directory in a path. llvm-svn: 49162
* add some #includes.Chris Lattner2008-04-011-2/+8
| | | | llvm-svn: 49036
* MappedFile is dead, remove it.Chris Lattner2008-04-013-235/+0
| | | | llvm-svn: 49035
* Implement Path::MapInFilePages/UnMapFilePages on unix, which Chris Lattner2008-04-012-7/+11
| | | | | | provides fast MappedFile::getFile for large files. llvm-svn: 49034
* Stub out some sys::Path::MapInFilePages/UnMapFilePages methods.Chris Lattner2008-04-012-0/+20
| | | | llvm-svn: 49030
* Make MappedFile::map return a const correct pointer, don't leak address ↵Chris Lattner2008-04-012-2/+3
| | | | | | space on Unix platforms. llvm-svn: 49026
* Remove MappedFile support for mapping files for write and execChris Lattner2008-04-012-106/+12
| | | | | | | and shared. This complicates the design, is not used, and probably doesn't even work. llvm-svn: 49022
* cleanup the MappedFile API and comments. This removes and updatesChris Lattner2008-04-012-118/+119
| | | | | | | | tons of out of date comments (really nothing throws here!) and fixes some other fairly glaring issues: "size" used to return the size of the file *and* change it, depending on how you called it. llvm-svn: 49009
* remove DEFINING_FILE_FOR for MappedFile.hChris Lattner2008-04-011-1/+0
| | | | llvm-svn: 49008
* Actually disable crash reporting on Mac OS X, returning bugpoint to speedyNate Begeman2008-03-311-23/+6
| | | | | | crash miscompilations. llvm-svn: 49000
* Revert r48676. I had plans for using it, but now it's just dead code.Owen Anderson2008-03-242-70/+0
| | | | llvm-svn: 48743
* Add a comment, and fix a bug where AllocateRW recurred to AllocateRWX ↵Owen Anderson2008-03-221-1/+1
| | | | | | instead of itself. llvm-svn: 48677
* Add an AllocateRW to match AllocateRWX.Owen Anderson2008-03-222-0/+70
| | | | llvm-svn: 48676
* Avoid calling array_endof in a static initializer, as it incursDan Gohman2008-03-211-2/+2
| | | | | | dynamic initialization. llvm-svn: 48666
* Specialize FORCE_DEFINING_FILE_TO_BE_LINKED using a GCC trickDan Gohman2008-03-211-1/+1
| | | | | | | | to avoid using constructor calls for static objects. This reduces the number of objects requiring static constructors in a typical LLVM build by around 20%. llvm-svn: 48665
* this was removed from the Unix side.Chris Lattner2008-03-141-5/+0
| | | | llvm-svn: 48370
* Remove unused GetAddressOfSymbol()Devang Patel2008-03-131-6/+1
| | | | | | Thanks Daniel Dunbar! llvm-svn: 48340
* Fix Path::GetMainExecutable on cygwin, patch by Sam Bishop.Chris Lattner2008-03-131-1/+10
| | | | llvm-svn: 48328
* remove extraneous namespace qualifier, PR2142Chris Lattner2008-03-131-2/+1
| | | | llvm-svn: 48327
* This is a simple fix for getting error messages from dlerror inChris Lattner2008-03-121-1/+2
| | | | | | | | | LoadLibraryPermanently. The current code modifies the value of a pointer that is passed by value, so the caller never gets the message. Patch by Julien Lerouge! llvm-svn: 48270
* Stub out a Path::GetMainExecutable call to find the path to theChris Lattner2008-03-032-0/+24
| | | | | | main executable of a program. This needs to be implemented on windows. llvm-svn: 47835
* Add path separator support, patch by Sam Bishop. Chris Lattner2008-02-273-38/+23
| | | | llvm-svn: 47662
* Provide __main hooks for cygwin & mingw32Anton Korobeynikov2008-02-222-17/+28
| | | | llvm-svn: 47479
* Add convenient helper to get suffix of the fileAnton Korobeynikov2008-02-201-1/+4
| | | | llvm-svn: 47397
* It is not safe to call fork in PrintStackTrace. Sometimes it freezes the ↵Lauro Ramos Venancio2008-02-151-44/+2
| | | | | | program. llvm-svn: 47161
* Remove use of ltdlDevang Patel2008-02-133-4958/+17
| | | | llvm-svn: 47065
* Set error message.Devang Patel2008-02-041-2/+4
| | | | | | Patch by Shantonu Sen. llvm-svn: 46715
* Use empty() instead of comparing size() with zero.Dan Gohman2008-01-291-1/+1
| | | | llvm-svn: 46514
* Fix potential buffer overflowAnton Korobeynikov2008-01-241-1/+1
| | | | llvm-svn: 46296
* Fix compile failures with g++-4.3.Duncan Sands2008-01-092-0/+2
| | | | llvm-svn: 45781
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-2933-66/+66
| | | | llvm-svn: 45418
* remove attribution from lib Makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45415
* Unbreak mingw buildAnton Korobeynikov2007-12-221-1/+2
| | | | llvm-svn: 45314
* Added "GetCurrentDirectory()" to sys::Path.Ted Kremenek2007-12-182-0/+19
| | | | llvm-svn: 45182
* Added "isDirectory" method to llvm::sys::Path.Ted Kremenek2007-12-182-0/+15
| | | | llvm-svn: 45168
* remove obviously dead uses of IncludeFile.Chris Lattner2007-12-183-3/+0
| | | | llvm-svn: 45165
* Remove dead file and directory.Chris Lattner2007-12-081-30/+0
| | | | llvm-svn: 44720
* Provide hook for _alloca to make JITing on Cygwin slightly happier :)Anton Korobeynikov2007-12-031-3/+11
| | | | llvm-svn: 44528
* This change does a couple of things. First it gets the Visual Studio builds ↵Chuck Rose III2007-11-212-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Silence a warning saying that the variables always resolve to "true" in anBill Wendling2007-11-011-4/+4
| | | | | | expression. llvm-svn: 43610
* really fix PR1581, thanks to Daniel Dunbar for pointingChris Lattner2007-09-281-1/+1
| | | | | | this out. llvm-svn: 42448
* Remove spurious consts. This fixes warnings with compilers thatDan Gohman2007-09-141-2/+2
| | | | | | are strict about such things. llvm-svn: 41956
* Add lengthof and endof templates that hide a lot of sizeof computations.Owen Anderson2007-09-071-3/+4
| | | | | | Patch by Sterling Stein! llvm-svn: 41758
* Fix PR1581, patch by Timo SavolaChris Lattner2007-07-311-1/+1
| | | | llvm-svn: 40616
* finishing touches of bytecode -> bitcode changes. also unbreak WindowsGabor Greif2007-07-061-1/+1
| | | | llvm-svn: 37950
* eliminate residual cruft related to recognizing bytecodeGabor Greif2007-07-061-16/+0
| | | | | | | files. bitcode files are the only LLVM format left. llvm-svn: 37945
* Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD ↵Gabor Greif2007-07-061-1/+1
| | | | | | below), should subsume Cygwin llvm-svn: 37939
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-1/+1
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* Provide hook for alloca on VCPP. Patch by Scott GrahamAnton Korobeynikov2007-06-251-4/+18
| | | | llvm-svn: 37715
* Fix LLVM build on NetBSD. Patch by Neil Booth.Devang Patel2007-06-041-0/+2
| | | | llvm-svn: 37410
OpenPOWER on IntegriCloud