Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | add a helper method to sys::Path for clang, patch by | Chris Lattner | 2008-08-11 | 1 | -0/+6 | |
| | | | | | | Kovarththanan Rajaratnam! llvm-svn: 54655 | |||||
* | Create temp. file in current path. | Devang Patel | 2008-07-24 | 1 | -6/+3 | |
| | | | | llvm-svn: 53973 | |||||
* | While creating temp. file on disk, if the current filename points to a ↵ | Devang Patel | 2008-07-22 | 1 | -2/+8 | |
| | | | | | | existing directory then create new temp. file inside the directory. llvm-svn: 53929 | |||||
* | Fix GetMainExecutable. Patch by Sam Bishop. | Seo Sanghyeon | 2008-06-27 | 1 | -4/+2 | |
| | | | | llvm-svn: 52847 | |||||
* | Add a missing semicolon. | Wojciech Matyjewicz | 2008-06-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 52290 | |||||
* | Fix the sys::Path::getSuffix() implementation. | Argyrios Kyrtzidis | 2008-06-15 | 1 | -0/+16 | |
| | | | | llvm-svn: 52288 | |||||
* | Fix redirection of stderr in sys::Program::ExecuteAndWait. There was logic | Matthijs Kooijman | 2008-06-12 | 1 | -4/+11 | |
| | | | | | | | | | | | | | error that caused it to redirect stderr to stdout too often. This fix is applied identically to the win32 code as well, but that is untested. --Thi line, and those below, will be ignored-- M System/Unix/Program.inc M System/Win32/Program.inc llvm-svn: 52233 | |||||
* | Make I/O redirection handling in sys::Program a bit more consistent. No | Matthijs Kooijman | 2008-06-12 | 1 | -21/+13 | |
| | | | | | | | | | | | | | functional changes. Win32 code is untested, but should work fine. In the unix variant, rename RedirectFD to RedirectIO and let that function handle empty and null paths instead of doing that in the caller 3 times. This is the same as win32 already does it. In the win32 variant, use Path::isEmpty() instead of checking the resulting c_str() manually. This is the same as unix already does it. llvm-svn: 52230 | |||||
* | Unbreak build. | Bill Wendling | 2008-05-29 | 1 | -3/+3 | |
| | | | | llvm-svn: 51709 | |||||
* | Remove more iostream header includes. Needed to implement a "FlushStream" | Bill Wendling | 2008-05-29 | 1 | -3/+3 | |
| | | | | | | function to flush a specified std::ostream. llvm-svn: 51705 | |||||
* | Make PreVerifyID, IntSigsEnd, and KillSigsEnd const. | Dan Gohman | 2008-05-14 | 1 | -2/+4 | |
| | | | | llvm-svn: 51088 | |||||
* | Clean up the use of static and anonymous namespaces. This turned up | Dan Gohman | 2008-05-13 | 1 | -1/+1 | |
| | | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017 | |||||
* | Make constructors target-specific. This fixes problems where the path would | Nick Lewycky | 2008-05-11 | 1 | -0/+6 | |
| | | | | | | include backslashes on Windows. This should fix llvm-ld problems on win32. llvm-svn: 50960 | |||||
* | Fix more -Wshorten-64-to-32 warnings. | Evan Cheng | 2008-05-05 | 4 | -5/+6 | |
| | | | | llvm-svn: 50659 | |||||
* | Restore code to disable crash catcher on older OS X systems | Nate Begeman | 2008-04-12 | 1 | -1/+25 | |
| | | | | llvm-svn: 49568 | |||||
* | Make several symbols static. | Dan Gohman | 2008-04-10 | 1 | -12/+12 | |
| | | | | llvm-svn: 49496 | |||||
* | Make getDirnameSep a static method (not part of Path's interface). | Ted Kremenek | 2008-04-07 | 1 | -1/+3 | |
| | | | | llvm-svn: 49354 | |||||
* | Added method Path::getDirname(). | Ted Kremenek | 2008-04-07 | 1 | -2/+4 | |
| | | | | llvm-svn: 49352 | |||||
* | Re-implemented Path::createDirectoryOnDisk (for Unix). | Ted Kremenek | 2008-04-03 | 1 | -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 Lattner | 2008-04-01 | 1 | -2/+8 | |
| | | | | llvm-svn: 49036 | |||||
* | MappedFile is dead, remove it. | Chris Lattner | 2008-04-01 | 1 | -97/+0 | |
| | | | | llvm-svn: 49035 | |||||
* | Implement Path::MapInFilePages/UnMapFilePages on unix, which | Chris Lattner | 2008-04-01 | 2 | -7/+11 | |
| | | | | | | provides fast MappedFile::getFile for large files. llvm-svn: 49034 | |||||
* | Stub out some sys::Path::MapInFilePages/UnMapFilePages methods. | Chris Lattner | 2008-04-01 | 1 | -0/+10 | |
| | | | | llvm-svn: 49030 | |||||
* | Make MappedFile::map return a const correct pointer, don't leak address ↵ | Chris Lattner | 2008-04-01 | 1 | -1/+2 | |
| | | | | | | space on Unix platforms. llvm-svn: 49026 | |||||
* | Remove MappedFile support for mapping files for write and exec | Chris Lattner | 2008-04-01 | 1 | -64/+6 | |
| | | | | | | | 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 updates | Chris Lattner | 2008-04-01 | 1 | -66/+67 | |
| | | | | | | | | 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 | |||||
* | Actually disable crash reporting on Mac OS X, returning bugpoint to speedy | Nate Begeman | 2008-03-31 | 1 | -23/+6 | |
| | | | | | | crash miscompilations. llvm-svn: 49000 | |||||
* | Revert r48676. I had plans for using it, but now it's just dead code. | Owen Anderson | 2008-03-24 | 1 | -47/+0 | |
| | | | | llvm-svn: 48743 | |||||
* | Add a comment, and fix a bug where AllocateRW recurred to AllocateRWX ↵ | Owen Anderson | 2008-03-22 | 1 | -1/+1 | |
| | | | | | | instead of itself. llvm-svn: 48677 | |||||
* | Add an AllocateRW to match AllocateRWX. | Owen Anderson | 2008-03-22 | 1 | -0/+47 | |
| | | | | llvm-svn: 48676 | |||||
* | Avoid calling array_endof in a static initializer, as it incurs | Dan Gohman | 2008-03-21 | 1 | -2/+2 | |
| | | | | | | dynamic initialization. llvm-svn: 48666 | |||||
* | Fix Path::GetMainExecutable on cygwin, patch by Sam Bishop. | Chris Lattner | 2008-03-13 | 1 | -1/+10 | |
| | | | | llvm-svn: 48328 | |||||
* | Stub out a Path::GetMainExecutable call to find the path to the | Chris Lattner | 2008-03-03 | 1 | -0/+18 | |
| | | | | | | main executable of a program. This needs to be implemented on windows. llvm-svn: 47835 | |||||
* | Add path separator support, patch by Sam Bishop. | Chris Lattner | 2008-02-27 | 1 | -19/+2 | |
| | | | | llvm-svn: 47662 | |||||
* | It is not safe to call fork in PrintStackTrace. Sometimes it freezes the ↵ | Lauro Ramos Venancio | 2008-02-15 | 1 | -44/+2 | |
| | | | | | | program. llvm-svn: 47161 | |||||
* | Set error message. | Devang Patel | 2008-02-04 | 1 | -2/+4 | |
| | | | | | | Patch by Shantonu Sen. llvm-svn: 46715 | |||||
* | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 10 | -20/+20 | |
| | | | | llvm-svn: 45418 | |||||
* | Added "GetCurrentDirectory()" to sys::Path. | Ted Kremenek | 2007-12-18 | 1 | -0/+10 | |
| | | | | llvm-svn: 45182 | |||||
* | Added "isDirectory" method to llvm::sys::Path. | Ted Kremenek | 2007-12-18 | 1 | -0/+8 | |
| | | | | llvm-svn: 45168 | |||||
* | Remove dead file and directory. | Chris Lattner | 2007-12-08 | 1 | -30/+0 | |
| | | | | llvm-svn: 44720 | |||||
* | Remove spurious consts. This fixes warnings with compilers that | Dan Gohman | 2007-09-14 | 1 | -2/+2 | |
| | | | | | | are strict about such things. llvm-svn: 41956 | |||||
* | Add lengthof and endof templates that hide a lot of sizeof computations. | Owen Anderson | 2007-09-07 | 1 | -3/+4 | |
| | | | | | | Patch by Sterling Stein! llvm-svn: 41758 | |||||
* | Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD ↵ | Gabor Greif | 2007-07-06 | 1 | -1/+1 | |
| | | | | | | below), should subsume Cygwin llvm-svn: 37939 | |||||
* | Here is the bulk of the sanitizing. | Gabor Greif | 2007-07-05 | 1 | -1/+1 | |
| | | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913 | |||||
* | Fix LLVM build on NetBSD. Patch by Neil Booth. | Devang Patel | 2007-06-04 | 1 | -0/+2 | |
| | | | | llvm-svn: 37410 | |||||
* | Fix a bug where the bcreader could crash on .bc files that were an exact | Chris Lattner | 2007-05-11 | 1 | -0/+1 | |
| | | | | | | multiple of the page size, due to a bug in MappedFile llvm-svn: 36980 | |||||
* | pull some win32 code into common code, add bitcode identification support. | Chris Lattner | 2007-05-06 | 1 | -31/+0 | |
| | | | | llvm-svn: 36846 | |||||
* | Cygwin doesn't have the RSS_LIMIT for get/setrlimit. | Reid Spencer | 2007-04-23 | 1 | -0/+2 | |
| | | | | llvm-svn: 36361 | |||||
* | For PR1291: | Reid Spencer | 2007-04-07 | 2 | -47/+54 | |
| | | | | | | Implement the PathWithStatus class and its use throughout lib/System. llvm-svn: 35742 | |||||
* | Use the stat information in the Path object, if it is already obtained. This | Reid Spencer | 2007-03-29 | 1 | -4/+3 | |
| | | | | | | | avoids a call to ::fstat by MappedFile when the file size information was already obtained by the Path object. llvm-svn: 35477 |