Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change default error_code ctor to a 'named ctor' so it's more self-documenting. | David Blaikie | 2012-02-09 | 1 | -17/+17 |
| | | | | | | | | | | | Unify default construction of error_code uses on this idiom so that users don't feel compelled to make static globals for naming convenience. (unfortunately I couldn't make the original ctor private as some APIs don't return their result, instead using an out parameter (that makes sense to default construct) - which is a bit of a pity. I did, however, find/fix some cases of unnecessary default construction of error_code before I hit the unfixable cases) llvm-svn: 150197 | ||||
* | Remove SetWorkingDirectory from the Process interface. Nothing in LLVM | Chandler Carruth | 2012-01-15 | 1 | -4/+0 |
| | | | | | | | | | | | | or Clang is using this, and it would be hard to use it correctly given the thread hostility of the function. Also, it never checked the return which is rather dangerous with chdir. If someone was in fact using this, please let me know, as well as what the usecase actually is so that I can add it back and make it more correct and secure to use. (That said, it's never going to be "safe" per-se, but we could at least document the risks...) llvm-svn: 148211 | ||||
* | Disable the crash reporter when running lit tests. | Argyrios Kyrtzidis | 2012-01-11 | 1 | -0/+20 |
| | | | | llvm-svn: 147965 | ||||
* | revert r147542 after comments from Joerg Sonnenberger | Sebastian Pop | 2012-01-05 | 1 | -12/+6 |
| | | | | llvm-svn: 147608 | ||||
* | use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT | Sebastian Pop | 2012-01-04 | 1 | -6/+12 |
| | | | | | | | | | | Get back getHostTriple. For JIT compilation, use the host triple instead of the default target: this fixes some JIT testcases that used to fail when the compiler has been configured as a cross compiler. llvm-svn: 147542 | ||||
* | Support/Program: Make Change<stream>ToBinary return error_code. | Michael J. Spencer | 2011-12-13 | 1 | -6/+6 |
| | | | | llvm-svn: 146522 | ||||
* | Revert r146363 to allow buildbots to make forward progress. | Chad Rosier | 2011-12-12 | 1 | -7/+0 |
| | | | | | | | Original commit message: Support/FileSystem: Implement canonicalize. llvm-svn: 146378 | ||||
* | Support/FileSystem: Implement bool equivalent(file_status A, file_status B); | Michael J. Spencer | 2011-12-12 | 1 | -21/+13 |
| | | | | llvm-svn: 146364 | ||||
* | Support/FileSystem: Implement canonicalize. | Michael J. Spencer | 2011-12-12 | 1 | -0/+7 |
| | | | | llvm-svn: 146363 | ||||
* | Support/FileSystem: Implement recursive_directory_iterator and make | Michael J. Spencer | 2011-12-08 | 1 | -3/+4 |
| | | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200 | ||||
* | rename getHostTriple into getDefaultTargetTriple | Sebastian Pop | 2011-11-01 | 1 | -5/+5 |
| | | | | llvm-svn: 143502 | ||||
* | rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE | Sebastian Pop | 2011-11-01 | 1 | -4/+1 |
| | | | | llvm-svn: 143501 | ||||
* | Remove a couple unused methods. PR11201. | Eli Friedman | 2011-11-01 | 1 | -5/+0 |
| | | | | llvm-svn: 143452 | ||||
* | sys::Process: Add a SetWorkingDirectory method. | Daniel Dunbar | 2011-09-23 | 1 | -0/+4 |
| | | | | llvm-svn: 140433 | ||||
* | Remove the hack to check UNAME_RELEASE when identifying the Darwin version. | Bob Wilson | 2011-09-20 | 1 | -9/+0 |
| | | | | | | | | | This was only needed to locate llvm-gcc's installation directory when clang falls back to run llvm-gcc for i386 kexts. As of clang svn r140187, we're now just searching paths with several different Darwin versions on either side of the current version, so this is no longer needed. llvm-svn: 140188 | ||||
* | Include limits.h to make sure PATH_MAX is known on Solaris 10. | Bill Wendling | 2011-09-14 | 1 | -0/+3 |
| | | | | | | Patch by Joakim Johansson! llvm-svn: 139743 | ||||
* | Clarify a comment. | Bob Wilson | 2011-08-10 | 1 | -1/+3 |
| | | | | llvm-svn: 137204 | ||||
* | Put Darwin-specific code inside an __APPLE__ ifdef. | Bob Wilson | 2011-08-09 | 1 | -0/+2 |
| | | | | llvm-svn: 137137 | ||||
* | Recognize the UNAME_RELEASE environment variable to match Darwin's uname. | Bob Wilson | 2011-08-09 | 1 | -0/+6 |
| | | | | | | | | When this variable is set, "uname -r" will return its value instead of the real OS version. Make this affect LLVM's triple for consistency. <rdar://problem/9919167> llvm-svn: 137111 | ||||
* | Don't look at $PWD in GetCurrentDirectory. | Nick Lewycky | 2011-07-29 | 1 | -3/+0 |
| | | | | llvm-svn: 136477 | ||||
* | Teach Path::GetCurrentDirectory to use $PWD, to support users who like to do | Nick Lewycky | 2011-07-29 | 1 | -2/+5 |
| | | | | | | | | | | | | screwy things by setting PWD != getcwd(). For example, some developers I know will use this to control the value in gcc's DW_AT_comp_dir value in debug output. With this patch, that trick will now work on clang too. The only other effect of this change is that the static analysis will now respect $PWD when reporting the directory of the files in its HTML output. I think that's fine. llvm-svn: 136459 | ||||
* | Add an optional 'bool makeAbsolute' in llvm::sys::fs::unique_file function. | Argyrios Kyrtzidis | 2011-07-28 | 1 | -8/+11 |
| | | | | | | | If true and 'model' parameter is not an absolute path, a temp directory will be prepended. Make it true by default to match current behaviour. llvm-svn: 136310 | ||||
* | By default mkstemp() creates a temporary file with mode 0600, but the mode | Chad Rosier | 2011-07-05 | 1 | -0/+3 |
| | | | | | | | | used for open is 0666. Therefore, add the necessary permission bits for consistency. rdar://8621462 llvm-svn: 134430 | ||||
* | Have Program::Wait return -2 for crashed and timeouts instead of embedding | Andrew Trick | 2011-05-21 | 1 | -7/+6 |
| | | | | | | info in the error message. Per Dan's request. llvm-svn: 131780 | ||||
* | Don't include information about the build into the information returned by | Rafael Espindola | 2011-05-17 | 1 | -29/+0 |
| | | | | | | getHostTriple. This fixes a 32 bit clang running on a 64 bit ubuntu. llvm-svn: 131463 | ||||
* | Bugpoint support for miscompilations that result in a crash. | Andrew Trick | 2011-05-11 | 1 | -2/+5 |
| | | | | | | | | | This change allows bugpoint to pinpoint the "opt" pass and bitcode segment responsible for a crash caused by miscompilation. At least it works well for me now, without having to create any custom execution wrappers. llvm-svn: 131186 | ||||
* | Include <pthread.h> before we use pthread_self/pthread_kill | Douglas Gregor | 2011-04-29 | 1 | -3/+3 |
| | | | | llvm-svn: 130510 | ||||
* | sys/Host: Change getHostTriple() to return the full Darwin version on OS X. | Daniel Dunbar | 2011-04-20 | 1 | -4/+1 |
| | | | | llvm-svn: 129852 | ||||
* | Fix a ton of comment typos found by codespell. Patch by | Chris Lattner | 2011-04-15 | 2 | -2/+2 |
| | | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558 | ||||
* | revert r128199 until it can be made to work with Frontend/dependency-gen.c. | Andrew Trick | 2011-03-24 | 1 | -5/+9 |
| | | | | llvm-svn: 128218 | ||||
* | Remove all uses of PATH_MAX and MAXPATHLEN from PathV2. | Michael J. Spencer | 2011-03-24 | 1 | -9/+5 |
| | | | | llvm-svn: 128199 | ||||
* | Avoid initializing posix_spawn_file_actions_t if not used. | Benjamin Kramer | 2011-03-20 | 1 | -7/+11 |
| | | | | | | | - glibc falls back to fork+exec if a file actions object is present. - On BSDs this saves a malloc. llvm-svn: 127969 | ||||
* | setExecutable() should default to success if there's nothing custom for it. | Jim Grosbach | 2011-03-18 | 1 | -1/+1 |
| | | | | llvm-svn: 127891 | ||||
* | Add r127409 back now that the windows file was updated. | Rafael Espindola | 2011-03-10 | 1 | -3/+3 |
| | | | | llvm-svn: 127417 | ||||
* | Revert r127409 which broke all the Windows bots. | Jakob Stoklund Olesen | 2011-03-10 | 1 | -3/+3 |
| | | | | llvm-svn: 127413 | ||||
* | Add support for MemoryBuffers that are not null terminated and add | Rafael Espindola | 2011-03-10 | 1 | -3/+3 |
| | | | | | | support for creating buffers that cover only a part of a file. llvm-svn: 127409 | ||||
* | improve support for OpenBSD, patch by Amit Kulkarni! | Chris Lattner | 2011-02-18 | 1 | -2/+4 |
| | | | | llvm-svn: 125943 | ||||
* | Rip out realpath() support. It's expensive, and often a bad idea, and | Douglas Gregor | 2011-02-09 | 1 | -30/+0 |
| | | | | | | I have another way to achieve the same goal. llvm-svn: 125239 | ||||
* | Attempt to fix the build after r125228. | Cameron Zwarich | 2011-02-09 | 1 | -2/+2 |
| | | | | llvm-svn: 125236 | ||||
* | Add llvm::sys::path::canonical(), which provides the canonicalized | Douglas Gregor | 2011-02-09 | 1 | -0/+30 |
| | | | | | | | | | | name of a path, after resolving symbolic links and eliminating excess path elements such as "foo/../" and "./". This routine still needs a Windows implementation, but I don't have a Windows machine available. Help? Please? llvm-svn: 125228 | ||||
* | Fix rename. | Michael J. Spencer | 2011-01-16 | 1 | -2/+11 |
| | | | | llvm-svn: 123604 | ||||
* | Support/PathV2: Implement get_magic. | Michael J. Spencer | 2011-01-15 | 1 | -0/+31 |
| | | | | llvm-svn: 123544 | ||||
* | Support/Path: Deprecate PathV1::isDirectory and replace all uses with ↵ | Michael J. Spencer | 2011-01-11 | 1 | -1/+2 |
| | | | | | | PathV2::is_directory. llvm-svn: 123209 | ||||
* | Support/Path: Deprecate PathV1::exists and replace all uses with ↵ | Michael J. Spencer | 2011-01-10 | 2 | -2/+5 |
| | | | | | | PathV2::fs::exists. llvm-svn: 123151 | ||||
* | Support/PathV2: Implement directory iteration on POSIX. | Michael J. Spencer | 2011-01-05 | 1 | -0/+54 |
| | | | | llvm-svn: 122879 | ||||
* | Support/PathV1: Deprecate GetRootDirectory. | Michael J. Spencer | 2010-12-27 | 1 | -6/+5 |
| | | | | llvm-svn: 122580 | ||||
* | Support/PathV1: Deprecate makeAbsolute and remove Unix impl because it ↵ | Michael J. Spencer | 2010-12-25 | 1 | -12/+0 |
| | | | | | | annoys people. llvm-svn: 122553 | ||||
* | Add missing standard headers. Patch by Joerg Sonnenberger! | Nick Lewycky | 2010-12-19 | 1 | -0/+1 |
| | | | | llvm-svn: 122193 | ||||
* | Support: Remove Alarm. It is unused (via local grep and google code search). | Michael J. Spencer | 2010-12-07 | 1 | -72/+0 |
| | | | | llvm-svn: 121160 | ||||
* | Support/PathV2: Change most functions in the path namespace to return their work | Michael J. Spencer | 2010-12-07 | 1 | -2/+1 |
| | | | | | | via their return value instead of an out parameter. llvm-svn: 121149 |