Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 1 | -896/+0 |
| | | | | llvm-svn: 120298 | ||||
* | Add method for checking if a path is a symbolic link. | Rafael Espindola | 2010-11-07 | 1 | -0/+9 |
| | | | | llvm-svn: 118367 | ||||
* | Delete unused variables. | Dan Gohman | 2010-11-03 | 1 | -3/+0 |
| | | | | llvm-svn: 118128 | ||||
* | Remove several unhelpful checks for isValid from sys::Path. | Dan Gohman | 2010-11-03 | 1 | -26/+4 |
| | | | | llvm-svn: 118127 | ||||
* | Don't try to enforce MAXPATHLEN in sys::Path for Unix. OS's can check | Dan Gohman | 2010-11-02 | 1 | -4/+6 |
| | | | | | | limits on their own. llvm-svn: 118113 | ||||
* | Simplify. | Dan Gohman | 2010-11-02 | 1 | -2/+1 |
| | | | | llvm-svn: 118110 | ||||
* | Fix a copy+pasto. | Dan Gohman | 2010-11-02 | 1 | -1/+2 |
| | | | | llvm-svn: 118106 | ||||
* | Avoid manipulating paths in fixed-sized arrays. | Dan Gohman | 2010-11-02 | 1 | -10/+6 |
| | | | | llvm-svn: 118105 | ||||
* | Simplify this code. | Dan Gohman | 2010-11-02 | 1 | -6/+3 |
| | | | | llvm-svn: 118102 | ||||
* | Use '\0' instead of 0 for nul character constants. | Dan Gohman | 2010-11-02 | 1 | -3/+3 |
| | | | | llvm-svn: 118096 | ||||
* | appendSuffix: don't append a dot when the suffix is empty. | Mikhail Glushenkov | 2010-11-02 | 1 | -12/+0 |
| | | | | | | | Additionally, move the implementation of appendSuffix to Path.cpp: it is platform-independent. llvm-svn: 118089 | ||||
* | Eliminate some temporary std::strings. | Dan Gohman | 2010-11-02 | 1 | -4/+4 |
| | | | | llvm-svn: 118086 | ||||
* | Micro-optimize. | Dan Gohman | 2010-11-02 | 1 | -1/+1 |
| | | | | llvm-svn: 118058 | ||||
* | Path: Add GetEXESuffix() to complement GetDLLSuffix(). | Mikhail Glushenkov | 2010-11-02 | 1 | -0/+4 |
| | | | | llvm-svn: 118042 | ||||
* | Correctly check if a path is a directory. Fix by Brian Korver. | Evan Cheng | 2010-10-07 | 1 | -1/+1 |
| | | | | llvm-svn: 115991 | ||||
* | Issue a #error if the host doesn't have an implementation for | Dan Gohman | 2010-09-07 | 1 | -0/+2 |
| | | | | | | GetMainExecutable yet. llvm-svn: 113240 | ||||
* | Apply a patch from Kees van Reeuwijk to add support for Minix. | Dan Gohman | 2010-09-02 | 1 | -3/+3 |
| | | | | | | | Minix apparently doesn't like double-slash separators, and there's no apparent need for them here. llvm-svn: 112844 | ||||
* | Some fixes for NetBSD | Anton Korobeynikov | 2010-08-31 | 1 | -3/+3 |
| | | | | llvm-svn: 112662 | ||||
* | Eliminate unnecessary empty string literals. | Dan Gohman | 2010-08-04 | 1 | -2/+2 |
| | | | | llvm-svn: 110183 | ||||
* | improve Path::makeUnique when mkstemp/mktemp are not available | Chris Lattner | 2010-07-12 | 1 | -7/+12 |
| | | | | | | patch by Lasse Kärkkäinen in PR7404. llvm-svn: 108110 | ||||
* | Don't bother clearing the Magic string when the magic number | Dan Gohman | 2010-05-27 | 1 | -3/+1 |
| | | | | | | can't be read, since it isn't cleared on other error paths. llvm-svn: 104852 | ||||
* | This doesn't need SmallVector.h anymore. | Dan Gohman | 2010-04-19 | 1 | -1/+0 |
| | | | | llvm-svn: 101790 | ||||
* | Fix this for std::vectors which don't have .data(). | Dan Gohman | 2010-04-19 | 1 | -1/+1 |
| | | | | llvm-svn: 101785 | ||||
* | Revert 91528 and use a std::vector instead, fixing an abuse of std::string. | Dan Gohman | 2010-04-19 | 1 | -10/+16 |
| | | | | llvm-svn: 101781 | ||||
* | Fix a grammaro. | Dan Gohman | 2010-03-30 | 1 | -2/+2 |
| | | | | llvm-svn: 99917 | ||||
* | Make Path use StringRef instead of std::string where possible. | Jeffrey Yasskin | 2009-12-17 | 1 | -18/+18 |
| | | | | llvm-svn: 91620 | ||||
* | remove use of SmallVector from Path::makeUnique. Path::makeUnique | Chris Lattner | 2009-12-16 | 1 | -14/+10 |
| | | | | | | is not used by anything performance sensitive, so just use std::string. llvm-svn: 91528 | ||||
* | eliminate an extraneous use of SmallVector in a case where | Chris Lattner | 2009-12-16 | 1 | -6/+4 |
| | | | | | | a fixed size buffer is perfectly fine. llvm-svn: 91527 | ||||
* | Remove spurious extern. | Daniel Dunbar | 2009-12-09 | 1 | -1/+1 |
| | | | | llvm-svn: 90937 | ||||
* | Remove dead returns. | Benjamin Kramer | 2009-11-29 | 1 | -2/+0 |
| | | | | llvm-svn: 90083 | ||||
* | This patch ensures that Path::GetMainExecutable is able to handle the | Kovarththanan Rajaratnam | 2009-11-29 | 1 | -2/+6 |
| | | | | | | | | | case where realpath() fails. When this occurs we segfault trying to create a std::string from a NULL pointer. Fixes PR5635. llvm-svn: 90082 | ||||
* | API change Path::isSpecialFile to Path::isRegularFile, improve semantics in ↵ | Edward O'Callaghan | 2009-11-25 | 1 | -5/+5 |
| | | | | | | regards to comments from 89765 post review. llvm-svn: 89848 | ||||
* | Remove bogus error handling code. | Daniel Dunbar | 2009-11-24 | 1 | -6/+2 |
| | | | | llvm-svn: 89786 | ||||
* | Provide Path::isSpecialFile interface for PR5568. | Edward O'Callaghan | 2009-11-24 | 1 | -2/+20 |
| | | | | llvm-svn: 89765 | ||||
* | Add a shortcut for OS X to Path::GetMainExecutable. This gives a nice speedup on | Benjamin Kramer | 2009-09-09 | 1 | -1/+15 |
| | | | | | | clang's testsuite. llvm-svn: 81333 | ||||
* | remove the last uses of Config/alloca.h | Chris Lattner | 2009-08-23 | 1 | -3/+7 |
| | | | | llvm-svn: 79873 | ||||
* | Prune #includes from llvm/Linker.h and llvm/System/Path.h, | Chris Lattner | 2009-08-23 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | | | 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 | ||||
* | Minor code simplification. | Dan Gohman | 2009-08-05 | 1 | -4/+2 |
| | | | | llvm-svn: 78239 | ||||
* | Remove another F_OK. | Dan Gohman | 2009-07-29 | 1 | -1/+1 |
| | | | | llvm-svn: 77405 | ||||
* | 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 | ||||
* | Improve sys::Path::makeAbsolute on Win32. | Daniel Dunbar | 2009-07-12 | 1 | -0/+13 |
| | | | | | | | | - 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 | ||||
* | add a new static method to portably determine whether a patch is | Chris Lattner | 2009-06-15 | 1 | -0/+8 |
| | | | | | | absolute or not, based on a patch by Gregory Curfman! llvm-svn: 73368 | ||||
* | Untabification. | Bill Wendling | 2009-05-30 | 1 | -42/+41 |
| | | | | llvm-svn: 72604 | ||||
* | Make Unix.h:MakeErrMsg separate the prefix and errno string, so we get: | Daniel Dunbar | 2009-04-20 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | clang: error: unable to make temporary file: /etc/cc: can't make unique filename: Permission denied instead of clang: error: unable to make temporary file: /etc/cc: can't make unique filenamePermission denied for example. Also, audited the uses of MakeErrMsg to make the prefix strings consistent (not end with newline/punctuation/space/": "). llvm-svn: 69626 | ||||
* | Fix main executable path name resolution on FreeBSD, patch by | Chris Lattner | 2009-03-02 | 1 | -1/+60 |
| | | | | | | Ed Schouten! llvm-svn: 65882 | ||||
* | If an executable is run through a symlink, dladdr will return the | Chris Lattner | 2009-02-19 | 1 | -3/+8 |
| | | | | | | | | symlink. We really want the ultimate executable being run, not the symlink. This lets clang find its headers when invoked through a symlink. rdar://6602012 llvm-svn: 65017 | ||||
* | Fix warning on gcc 4.3. | Mikhail Glushenkov | 2009-02-15 | 1 | -1/+4 |
| | | | | | | "system() declared with attribute warn_unused_result." llvm-svn: 64574 | ||||
* | Whitespace fixes. | Mikhail Glushenkov | 2009-02-15 | 1 | -58/+58 |
| | | | | llvm-svn: 64573 | ||||
* | add a helper method to sys::Path for clang, patch by | Chris Lattner | 2008-08-11 | 1 | -0/+6 |
| | | | | | | Kovarththanan Rajaratnam! llvm-svn: 54655 |