49621cb209 
								
							 
						 
						
							
							
								
								Remove the hack to check UNAME_RELEASE when identifying the Darwin version.  
							
							... 
							
							
							
							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 
							
						 
						
							2011-09-20 22:05:56 +00:00  
				
					
						
							
							
								 
						
							
								bdaa57fe6d 
								
							 
						 
						
							
							
								
								Include limits.h to make sure PATH_MAX is known on Solaris 10.  
							
							... 
							
							
							
							Patch by Joakim Johansson!
llvm-svn: 139743 
							
						 
						
							2011-09-14 21:49:42 +00:00  
				
					
						
							
							
								 
						
							
								527bd07934 
								
							 
						 
						
							
							
								
								Clarify a comment.  
							
							... 
							
							
							
							llvm-svn: 137204 
							
						 
						
							2011-08-10 05:02:22 +00:00  
				
					
						
							
							
								 
						
							
								f60d6df887 
								
							 
						 
						
							
							
								
								Put Darwin-specific code inside an __APPLE__ ifdef.  
							
							... 
							
							
							
							llvm-svn: 137137 
							
						 
						
							2011-08-09 19:54:32 +00:00  
				
					
						
							
							
								 
						
							
								de9ec45e5a 
								
							 
						 
						
							
							
								
								Recognize the UNAME_RELEASE environment variable to match Darwin's uname.  
							
							... 
							
							
							
							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 
							
						 
						
							2011-08-09 05:13:36 +00:00  
				
					
						
							
							
								 
						
							
								9ee5f77141 
								
							 
						 
						
							
							
								
								Don't look at $PWD in GetCurrentDirectory.  
							
							... 
							
							
							
							llvm-svn: 136477 
							
						 
						
							2011-07-29 18:26:59 +00:00  
				
					
						
							
							
								 
						
							
								38b9b568b9 
								
							 
						 
						
							
							
								
								Teach Path::GetCurrentDirectory to use $PWD, to support users who like to do  
							
							... 
							
							
							
							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 
							
						 
						
							2011-07-29 04:42:39 +00:00  
				
					
						
							
							
								 
						
							
								348937de07 
								
							 
						 
						
							
							
								
								Add an optional 'bool makeAbsolute' in llvm::sys::fs::unique_file function.  
							
							... 
							
							
							
							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 
							
						 
						
							2011-07-28 00:29:20 +00:00  
				
					
						
							
							
								 
						
							
								30c3463309 
								
							 
						 
						
							
							
								
								By default mkstemp() creates a temporary file with mode 0600, but the mode  
							
							... 
							
							
							
							used for open is 0666.  Therefore, add the necessary permission bits for
consistency.
rdar://8621462
llvm-svn: 134430 
							
						 
						
							2011-07-05 18:55:31 +00:00  
				
					
						
							
							
								 
						
							
								d5d0764b3b 
								
							 
						 
						
							
							
								
								Have Program::Wait return -2 for crashed and timeouts instead of embedding  
							
							... 
							
							
							
							info in the error message. Per Dan's request.
llvm-svn: 131780 
							
						 
						
							2011-05-21 00:56:46 +00:00  
				
					
						
							
							
								 
						
							
								0693182265 
								
							 
						 
						
							
							
								
								Don't include information about the build into the information returned by  
							
							... 
							
							
							
							getHostTriple. This fixes a 32 bit clang running on a 64 bit ubuntu.
llvm-svn: 131463 
							
						 
						
							2011-05-17 15:26:34 +00:00  
				
					
						
							
							
								 
						
							
								55aeb55aa3 
								
							 
						 
						
							
							
								
								Bugpoint support for miscompilations that result in a crash.  
							
							... 
							
							
							
							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 
							
						 
						
							2011-05-11 16:31:24 +00:00  
				
					
						
							
							
								 
						
							
								0e50682f26 
								
							 
						 
						
							
							
								
								Include <pthread.h> before we use pthread_self/pthread_kill  
							
							... 
							
							
							
							llvm-svn: 130510 
							
						 
						
							2011-04-29 16:12:17 +00:00  
				
					
						
							
							
								 
						
							
								8991d611fd 
								
							 
						 
						
							
							
								
								sys/Host: Change getHostTriple() to return the full Darwin version on OS X.  
							
							... 
							
							
							
							llvm-svn: 129852 
							
						 
						
							2011-04-20 15:44:33 +00:00  
				
					
						
							
							
								 
						
							
								0ab5e2cded 
								
							 
						 
						
							
							
								
								Fix a ton of comment typos found by codespell.  Patch by  
							
							... 
							
							
							
							Luis Felipe Strano Moraes!
llvm-svn: 129558 
							
						 
						
							2011-04-15 05:18:47 +00:00  
				
					
						
							
							
								 
						
							
								a4ec5b2c19 
								
							 
						 
						
							
							
								
								revert r128199 until it can be made to work with Frontend/dependency-gen.c.  
							
							... 
							
							
							
							llvm-svn: 128218 
							
						 
						
							2011-03-24 16:43:37 +00:00  
				
					
						
							
							
								 
						
							
								e42162ad59 
								
							 
						 
						
							
							
								
								Remove all uses of PATH_MAX and MAXPATHLEN from PathV2.  
							
							... 
							
							
							
							llvm-svn: 128199 
							
						 
						
							2011-03-24 05:23:40 +00:00  
				
					
						
							
							
								 
						
							
								dce83c522c 
								
							 
						 
						
							
							
								
								Avoid initializing posix_spawn_file_actions_t if not used.  
							
							... 
							
							
							
							- glibc falls back to fork+exec if a file actions object is present.
- On BSDs this saves a malloc.
llvm-svn: 127969 
							
						 
						
							2011-03-20 15:52:24 +00:00  
				
					
						
							
							
								 
						
							
								806d507b0f 
								
							 
						 
						
							
							
								
								setExecutable() should default to success if there's nothing custom for it.  
							
							... 
							
							
							
							llvm-svn: 127891 
							
						 
						
							2011-03-18 18:51:03 +00:00  
				
					
						
							
							
								 
						
							
								258a605fce 
								
							 
						 
						
							
							
								
								Add r127409 back now that the windows file was updated.  
							
							... 
							
							
							
							llvm-svn: 127417 
							
						 
						
							2011-03-10 18:33:29 +00:00  
				
					
						
							
							
								 
						
							
								e413d9d341 
								
							 
						 
						
							
							
								
								Revert r127409 which broke all the Windows bots.  
							
							... 
							
							
							
							llvm-svn: 127413 
							
						 
						
							2011-03-10 18:01:43 +00:00  
				
					
						
							
							
								 
						
							
								ea5a137e55 
								
							 
						 
						
							
							
								
								Add support for MemoryBuffers that are not null terminated and add  
							
							... 
							
							
							
							support for creating buffers that cover only a part of a file.
llvm-svn: 127409 
							
						 
						
							2011-03-10 16:10:30 +00:00  
				
					
						
							
							
								 
						
							
								c37910ea28 
								
							 
						 
						
							
							
								
								improve support for OpenBSD, patch by Amit Kulkarni!  
							
							... 
							
							
							
							llvm-svn: 125943 
							
						 
						
							2011-02-18 17:04:56 +00:00  
				
					
						
							
							
								 
						
							
								56b2ffdaba 
								
							 
						 
						
							
							
								
								Rip out realpath() support. It's expensive, and often a bad idea, and  
							
							... 
							
							
							
							I have another way to achieve the same goal.
llvm-svn: 125239 
							
						 
						
							2011-02-09 23:33:15 +00:00  
				
					
						
							
							
								 
						
							
								f73f5ba21c 
								
							 
						 
						
							
							
								
								Attempt to fix the build after r125228.  
							
							... 
							
							
							
							llvm-svn: 125236 
							
						 
						
							2011-02-09 23:02:14 +00:00  
				
					
						
							
							
								 
						
							
								529329e859 
								
							 
						 
						
							
							
								
								Add llvm::sys::path::canonical(), which provides the canonicalized  
							
							... 
							
							
							
							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 
							
						 
						
							2011-02-09 22:11:23 +00:00  
				
					
						
							
							
								 
						
							
								ec202ee69a 
								
							 
						 
						
							
							
								
								Fix rename.  
							
							... 
							
							
							
							llvm-svn: 123604 
							
						 
						
							2011-01-16 22:18:41 +00:00  
				
					
						
							
							
								 
						
							
								ee1699c362 
								
							 
						 
						
							
							
								
								Support/PathV2: Implement get_magic.  
							
							... 
							
							
							
							llvm-svn: 123544 
							
						 
						
							2011-01-15 18:52:33 +00:00  
				
					
						
							
							
								 
						
							
								0d771edeee 
								
							 
						 
						
							
							
								
								Support/Path: Deprecate PathV1::isDirectory and replace all uses with PathV2::is_directory.  
							
							... 
							
							
							
							llvm-svn: 123209 
							
						 
						
							2011-01-11 01:21:55 +00:00  
				
					
						
							
							
								 
						
							
								58df2e00b2 
								
							 
						 
						
							
							
								
								Support/Path: Deprecate PathV1::exists and replace all uses with PathV2::fs::exists.  
							
							... 
							
							
							
							llvm-svn: 123151 
							
						 
						
							2011-01-10 02:34:23 +00:00  
				
					
						
							
							
								 
						
							
								52714863db 
								
							 
						 
						
							
							
								
								Support/PathV2: Implement directory iteration on POSIX.  
							
							... 
							
							
							
							llvm-svn: 122879 
							
						 
						
							2011-01-05 16:38:57 +00:00  
				
					
						
							
							
								 
						
							
								9e590024f6 
								
							 
						 
						
							
							
								
								Support/PathV1: Deprecate GetRootDirectory.  
							
							... 
							
							
							
							llvm-svn: 122580 
							
						 
						
							2010-12-27 03:21:41 +00:00  
				
					
						
							
							
								 
						
							
								e13f1ead9b 
								
							 
						 
						
							
							
								
								Support/PathV1: Deprecate makeAbsolute and remove Unix impl because it annoys people.  
							
							... 
							
							
							
							llvm-svn: 122553 
							
						 
						
							2010-12-25 20:10:11 +00:00  
				
					
						
							
							
								 
						
							
								0de20af7ba 
								
							 
						 
						
							
							
								
								Add missing standard headers. Patch by Joerg Sonnenberger!  
							
							... 
							
							
							
							llvm-svn: 122193 
							
						 
						
							2010-12-19 20:43:38 +00:00  
				
					
						
							
							
								 
						
							
								8b5defbd5d 
								
							 
						 
						
							
							
								
								Support: Remove Alarm. It is unused (via local grep and google code search).  
							
							... 
							
							
							
							llvm-svn: 121160 
							
						 
						
							2010-12-07 18:41:59 +00:00  
				
					
						
							
							
								 
						
							
								f616b218c8 
								
							 
						 
						
							
							
								
								Support/PathV2: Change most functions in the path namespace to return their work  
							
							... 
							
							
							
							via their return value instead of an out parameter.
llvm-svn: 121149 
							
						 
						
							2010-12-07 17:04:04 +00:00  
				
					
						
							
							
								 
						
							
								1e090f0b8f 
								
							 
						 
						
							
							
								
								Support/PathV2: Remove the error_code return type from all functions in the path  
							
							... 
							
							
							
							namespace. None of them return anything except for success anyway. These will be
converted to returning their result soon.
llvm-svn: 121109 
							
						 
						
							2010-12-07 03:57:37 +00:00  
				
					
						
							
							
								 
						
							
								f27da4e578 
								
							 
						 
						
							
							
								
								Support/Unix/PathV2: Return the real error from realpath instead of any error  
							
							... 
							
							
							
							that close or unlink set.
llvm-svn: 121094 
							
						 
						
							2010-12-07 01:23:39 +00:00  
				
					
						
							
							
								 
						
							
								e5755beb47 
								
							 
						 
						
							
							
								
								Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. Also use  
							
							... 
							
							
							
							the standard macros instead of octal notation.
llvm-svn: 121093 
							
						 
						
							2010-12-07 01:23:29 +00:00  
				
					
						
							
							
								 
						
							
								98c7a114de 
								
							 
						 
						
							
							
								
								Support/PathV2: Use SmallVector::clear instead of set_size.  
							
							... 
							
							
							
							llvm-svn: 121092 
							
						 
						
							2010-12-07 01:23:19 +00:00  
				
					
						
							
							
								 
						
							
								5529c57cfe 
								
							 
						 
						
							
							
								
								Support/PathV2: Clarify and correct documentation.  
							
							... 
							
							
							
							llvm-svn: 121091 
							
						 
						
							2010-12-07 01:23:08 +00:00  
				
					
						
							
							
								 
						
							
								20daa28344 
								
							 
						 
						
							
							
								
								Support/PathV2: Move current_path from path to fs and fix the Unix implementation.  
							
							... 
							
							
							
							Unix bug spotted by Dan Gohman.
llvm-svn: 121090 
							
						 
						
							2010-12-07 01:22:31 +00:00  
				
					
						
							
							
								 
						
							
								66a1f86f7a 
								
							 
						 
						
							
							
								
								Support/PathV2: Remove redundant calls to make_error_code.  
							
							... 
							
							
							
							llvm-svn: 120913 
							
						 
						
							2010-12-04 18:45:32 +00:00  
				
					
						
							
							
								 
						
							
								db5576a185 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add status implementation.  
							
							... 
							
							
							
							llvm-svn: 120870 
							
						 
						
							2010-12-04 00:32:40 +00:00  
				
					
						
							
							
								 
						
							
								818ab4aad4 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add file_size implementation.  
							
							... 
							
							
							
							llvm-svn: 120867 
							
						 
						
							2010-12-04 00:31:48 +00:00  
				
					
						
							
							
								 
						
							
								376d38753d 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add equivalent implementation.  
							
							... 
							
							
							
							llvm-svn: 120827 
							
						 
						
							2010-12-03 18:49:13 +00:00  
				
					
						
							
							
								 
						
							
								c20a0325f3 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add resize_file implementation.  
							
							... 
							
							
							
							llvm-svn: 120819 
							
						 
						
							2010-12-03 17:54:07 +00:00  
				
					
						
							
							
								 
						
							
								409f556a2f 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add rename implementation.  
							
							... 
							
							
							
							llvm-svn: 120818 
							
						 
						
							2010-12-03 17:53:55 +00:00  
				
					
						
							
							
								 
						
							
								6e74e11c85 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add remove implementation.  
							
							... 
							
							
							
							llvm-svn: 120817 
							
						 
						
							2010-12-03 17:53:43 +00:00  
				
					
						
							
							
								 
						
							
								7ee6d5d6a1 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add create_symlink implementation.  
							
							... 
							
							
							
							llvm-svn: 120800 
							
						 
						
							2010-12-03 07:41:25 +00:00  
				
					
						
							
							
								 
						
							
								e0c4560b50 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add create_hard_link implementation.  
							
							... 
							
							
							
							llvm-svn: 120792 
							
						 
						
							2010-12-03 05:58:41 +00:00  
				
					
						
							
							
								 
						
							
								31e310cda0 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add create_director{y,ies} implementations.  
							
							... 
							
							
							
							llvm-svn: 120790 
							
						 
						
							2010-12-03 05:42:11 +00:00  
				
					
						
							
							
								 
						
							
								4571040ea1 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add unique_file and exists implementations.  
							
							... 
							
							
							
							llvm-svn: 120776 
							
						 
						
							2010-12-03 01:21:28 +00:00  
				
					
						
							
							
								 
						
							
								795adf5061 
								
							 
						 
						
							
							
								
								Support/FileSystem: Fix copy_file implementation to use toNullTerminatedStringRef  
							
							... 
							
							
							
							instead of toStringRef. The file system APIs need c strings.
llvm-svn: 120601 
							
						 
						
							2010-12-01 20:37:42 +00:00  
				
					
						
							
							
								 
						
							
								9fc1d9dcc3 
								
							 
						 
						
							
							
								
								Support/FileSystem: Add copy_file implementation. Not tests yet because the  
							
							... 
							
							
							
							file creation APIs aren't implemented.
llvm-svn: 120593 
							
						 
						
							2010-12-01 19:32:01 +00:00  
				
					
						
							
							
								 
						
							
								ebad2f9d36 
								
							 
						 
						
							
							
								
								Support: Add PathV2 implementation.  
							
							... 
							
							
							
							llvm-svn: 120329 
							
						 
						
							2010-11-29 22:28:51 +00:00  
				
					
						
							
							
								 
						
							
								54c9eb6fff 
								
							 
						 
						
							
							
								
								Now to chant the magical incantation that will exorcise the System library  
							
							... 
							
							
							
							from LLVM forever:
grep -lR "llvm/System" * | grep -v .svn | xargs sed -ie 's#llvm/System#llvm/Support#g'
llvm-svn: 120314 
							
						 
						
							2010-11-29 19:44:50 +00:00  
				
					
						
							
							
								 
						
							
								4d2e1501ad 
								
							 
						 
						
							
							
								
								Missed a spot.  
							
							... 
							
							
							
							llvm-svn: 120301 
							
						 
						
							2010-11-29 18:29:55 +00:00  
				
					
						
							
							
								 
						
							
								447762da85 
								
							 
						 
						
							
							
								
								Merge System into Support.  
							
							... 
							
							
							
							llvm-svn: 120298 
							
						 
						
							2010-11-29 18:16:10 +00:00