dcc3b657f2 
								
							 
						 
						
							
							
								
								Driver/Darwin/ld: Factor out getDarwinArchName, for getting the "Darwin" arch  
							
							... 
							
							
							
							name being used in an driver invocation.
llvm-svn: 94139 
							
						 
						
							2010-01-22 02:04:58 +00:00  
				
					
						
							
							
								 
						
							
								6bc5be24fa 
								
							 
						 
						
							
							
								
								Remove ../libexec from clang program search path, clang-cc is dead.  
							
							... 
							
							
							
							llvm-svn: 93749 
							
						 
						
							2010-01-18 19:16:53 +00:00  
				
					
						
							
							
								 
						
							
								620327d66b 
								
							 
						 
						
							
							
								
								Fix a FIXME.  
							
							... 
							
							
							
							llvm-svn: 93087 
							
						 
						
							2010-01-10 00:46:10 +00:00  
				
					
						
							
							
								 
						
							
								d1e76b957b 
								
							 
						 
						
							
							
								
								Use -fno-math-errno by default, and remove the IsMathErrnoDefault  
							
							... 
							
							
							
							targethook, which is no longer being used. This fixes PR5971.
llvm-svn: 92987 
							
						 
						
							2010-01-08 02:20:44 +00:00  
				
					
						
							
							
								 
						
							
								083edf70a5 
								
							 
						 
						
							
							
								
								Add ToolChain::getDriver() and use it instead of going through the HostInfo  
							
							... 
							
							
							
							object.
llvm-svn: 91830 
							
						 
						
							2009-12-21 18:54:17 +00:00  
				
					
						
							
							
								 
						
							
								24c7f5efc5 
								
							 
						 
						
							
							
								
								Add -dwarf-debug-flags, which provides a way to embed the cc1 level options used  
							
							... 
							
							
							
							to compile a translation unit into the debug info for that file.
 - Used by parts of Darwin build process to check compiler flags, etc.
 - <rdar://problem/7256886> clang does not emit AT_APPLE_flags
llvm-svn: 91661 
							
						 
						
							2009-12-18 02:43:17 +00:00  
				
					
						
							
							
								 
						
							
								1615d45daa 
								
							 
						 
						
							
							
								
								Un-namespace-qualify llvm_unreachable. It's a macro, so the qualification gave  
							
							... 
							
							
							
							no extra safety anyway.
llvm-svn: 91207 
							
						 
						
							2009-12-12 05:05:38 +00:00  
				
					
						
							
							
								 
						
							
								da13faf982 
								
							 
						 
						
							
							
								
								Driver: ArgList doesn't depend on Options.h anymore.  
							
							... 
							
							
							
							llvm-svn: 89313 
							
						 
						
							2009-11-19 04:25:22 +00:00  
				
					
						
							
							
								 
						
							
								8c00957008 
								
							 
						 
						
							
							
								
								Driver: Introduce OptSpecifier class for protecting access to an option id.  
							
							... 
							
							
							
							llvm-svn: 89310 
							
						 
						
							2009-11-19 04:14:53 +00:00  
				
					
						
							
							
								 
						
							
								fffd18167d 
								
							 
						 
						
							
							
								
								Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead of taking a Claim argument.  
							
							... 
							
							
							
							- Most driver code always claims, and bool arguments don't play nice with the overloads.
llvm-svn: 89308 
							
						 
						
							2009-11-19 04:00:53 +00:00  
				
					
						
							
							
								 
						
							
								aa767378ac 
								
							 
						 
						
							
							
								
								Driver: Split OptTable out into OptTable.{h,cpp}  
							
							... 
							
							
							
							llvm-svn: 89283 
							
						 
						
							2009-11-19 00:15:11 +00:00  
				
					
						
							
							
								 
						
							
								f324fa7095 
								
							 
						 
						
							
							
								
								Driver: Store Option ID field as unsigned to drop dependency on the options  
							
							... 
							
							
							
							type.
llvm-svn: 89232 
							
						 
						
							2009-11-18 20:19:19 +00:00  
				
					
						
							
							
								 
						
							
								820782aae0 
								
							 
						 
						
							
							
								
								Driver: Fix thinko in logic for finding gcc's tool chain directory.  
							
							... 
							
							
							
							llvm-svn: 84805 
							
						 
						
							2009-10-22 00:12:00 +00:00  
				
					
						
							
							
								 
						
							
								961b4e3edb 
								
							 
						 
						
							
							
								
								Driver: don't produce bogus osx version numbers if no version (aka 0) was specified.  
							
							... 
							
							
							
							llvm-svn: 84781 
							
						 
						
							2009-10-21 21:05:07 +00:00  
				
					
						
							
							
								 
						
							
								f4534ee0a3 
								
							 
						 
						
							
							
								
								Driver: If unable to find the gcc tool chain, try the next OS rev.  
							
							... 
							
							
							
							llvm-svn: 84656 
							
						 
						
							2009-10-20 19:25:43 +00:00  
				
					
						
							
							
								 
						
							
								d8712d9143 
								
							 
						 
						
							
							
								
								AuroraUX toolchain fixes.  
							
							... 
							
							
							
							llvm-svn: 84176 
							
						 
						
							2009-10-15 07:44:07 +00:00  
				
					
						
							
							
								 
						
							
								7881ac97a5 
								
							 
						 
						
							
							
								
								Revert r83443.  
							
							... 
							
							
							
							llvm-svn: 83451 
							
						 
						
							2009-10-07 03:21:11 +00:00  
				
					
						
							
							
								 
						
							
								db9fca7735 
								
							 
						 
						
							
							
								
								Fixup pathnames.  
							
							... 
							
							
							
							llvm-svn: 83443 
							
						 
						
							2009-10-07 01:11:54 +00:00  
				
					
						
							
							
								 
						
							
								d71a03b164 
								
							 
						 
						
							
							
								
								Fix truck sized thinko where Darwin/ARM toolchain didn't look for programs in  
							
							... 
							
							
							
							libexec, *blush*.
llvm-svn: 83086 
							
						 
						
							2009-09-29 18:52:10 +00:00  
				
					
						
							
							
								 
						
							
								6276f99be5 
								
							 
						 
						
							
							
								
								Split Darwin toolchain into Clang and GCC Darwin toolchains with a common base.  
							
							... 
							
							
							
							llvm-svn: 82213 
							
						 
						
							2009-09-18 08:15:13 +00:00  
				
					
						
							
							
								 
						
							
								26d482a1a9 
								
							 
						 
						
							
							
								
								Lift AddLinkRuntimeLibArgs into Darwin tool chain.  
							
							... 
							
							
							
							llvm-svn: 82212 
							
						 
						
							2009-09-18 08:15:03 +00:00  
				
					
						
							
							
								 
						
							
								510d8a8dd8 
								
							 
						 
						
							
							
								
								Lift getMacosxVersionMin out into Darwin ToolChain.  
							
							... 
							
							
							
							llvm-svn: 82210 
							
						 
						
							2009-09-18 08:14:46 +00:00  
				
					
						
							
							
								 
						
							
								4c30b89def 
								
							 
						 
						
							
							
								
								Lift AddLinkerSearchPaths() into Darwin tool chain.  
							
							... 
							
							
							
							llvm-svn: 82209 
							
						 
						
							2009-09-18 08:14:36 +00:00  
				
					
						
							
							
								 
						
							
								3c7b9ca4bf 
								
							 
						 
						
							
							
								
								Improve Darwin argument translation to match what the driver driver does.  
							
							... 
							
							
							
							llvm-svn: 81391 
							
						 
						
							2009-09-09 22:33:15 +00:00  
				
					
						
							
							
								 
						
							
								e7af341454 
								
							 
						 
						
							
							
								
								Push bound architecture name into TranslateArgs.  
							
							... 
							
							
							
							llvm-svn: 81366 
							
						 
						
							2009-09-09 18:36:12 +00:00  
				
					
						
							
							
								 
						
							
								11289f4280 
								
							 
						 
						
							
							
								
								Remove tabs, and whitespace cleanups.  
							
							... 
							
							
							
							llvm-svn: 81346 
							
						 
						
							2009-09-09 15:08:12 +00:00  
				
					
						
							
							
								 
						
							
								953b8d1f15 
								
							 
						 
						
							
							
								
								Fix ShouldUseClangCompiler to use llvm::Triple.  
							
							... 
							
							
							
							- -1 FIXME, and fixes 'clang -arch armv4t ...', for example.
llvm-svn: 81276 
							
						 
						
							2009-09-08 23:36:55 +00:00  
				
					
						
							
							
								 
						
							
								84e727fb72 
								
							 
						 
						
							
							
								
								Darwin: Pass -iphoneos-version-min to ld when building for ARM.  
							
							... 
							
							
							
							llvm-svn: 81019 
							
						 
						
							2009-09-04 18:35:21 +00:00  
				
					
						
							
							
								 
						
							
								f0a5b9b126 
								
							 
						 
						
							
							
								
								Rename Darwin_X86 toolchain to just Darwin, this can support all platforms.  
							
							... 
							
							
							
							llvm-svn: 81016 
							
						 
						
							2009-09-04 18:34:51 +00:00  
				
					
						
							
							
								 
						
							
								5095b293b7 
								
							 
						 
						
							
							
								
								Remove unused argument.  
							
							... 
							
							
							
							llvm-svn: 81010 
							
						 
						
							2009-09-04 17:39:02 +00:00  
				
					
						
							
							
								 
						
							
								856e4ff78d 
								
							 
						 
						
							
							
								
								Second half of, clang, AuroraUX toolchain support.  
							
							... 
							
							
							
							llvm-svn: 79713 
							
						 
						
							2009-08-22 01:06:46 +00:00  
				
					
						
							
							
								 
						
							
								b46b5bbaa8 
								
							 
						 
						
							
							
								
								Add additional library paths for Linux distros on mixed 32/64-bit systems.  
							
							... 
							
							
							
							- Patch by Carl-Daniel Hailfinger.
llvm-svn: 78272 
							
						 
						
							2009-08-06 01:47:11 +00:00  
				
					
						
							
							
								 
						
							
								10de9e6602 
								
							 
						 
						
							
							
								
								OpenBSD support.  
							
							... 
							
							
							
							- Patch by Jonathan Gray!
llvm-svn: 74453 
							
						 
						
							2009-06-29 20:52:51 +00:00  
				
					
						
							
							
								 
						
							
								5cd659fd32 
								
							 
						 
						
							
							
								
								Fix for PR4140: Add the start of a Linux toolchain (basically, just  
							
							... 
							
							
							
							barely enough to get the given usage of -print-file-name working).
llvm-svn: 72412 
							
						 
						
							2009-05-26 07:52:18 +00:00  
				
					
						
							
							
								 
						
							
								51c7f97bea 
								
							 
						 
						
							
							
								
								(llvm up) Use llvm::Triple for storing target triples.  
							
							... 
							
							
							
							- This commit has some messy stuff in it to extend string lifetimes, but that
   will go away once we switch to using the enum'd Triple interfaces.
llvm-svn: 72243 
							
						 
						
							2009-05-22 02:53:45 +00:00  
				
					
						
							
							
								 
						
							
								cc9123424f 
								
							 
						 
						
							
							
								
								DragonFly ToolChain definition for driver.  
							
							... 
							
							
							
							- Patch by Alex Hornung!
llvm-svn: 70635 
							
						 
						
							2009-05-02 18:28:39 +00:00  
				
					
						
							
							
								 
						
							
								b5023e90f4 
								
							 
						 
						
							
							
								
								Honor MACOSX_DEPLOYMENT_TARGET environment variable.  
							
							... 
							
							
							
							llvm-svn: 68822 
							
						 
						
							2009-04-10 21:00:07 +00:00  
				
					
						
							
							
								 
						
							
								c8b7af89ce 
								
							 
						 
						
							
							
								
								Driver: Forward -miphoneos-version-min to clang.  
							
							... 
							
							
							
							llvm-svn: 68816 
							
						 
						
							2009-04-10 20:11:50 +00:00  
				
					
						
							
							
								 
						
							
								b48a4aaec9 
								
							 
						 
						
							
							
								
								Driver: Tweak search paths for FreeBSD.  
							
							... 
							
							
							
							- Patch by Pawel Worach!
llvm-svn: 68332 
							
						 
						
							2009-04-02 18:30:04 +00:00  
				
					
						
							
							
								 
						
							
								d854c8d8a6 
								
							 
						 
						
							
							
								
								Driver: Add freebsd::Link  
							
							... 
							
							
							
							- Patch by Ed Schouten!
llvm-svn: 68233 
							
						 
						
							2009-04-01 19:36:32 +00:00  
				
					
						
							
							
								 
						
							
								8eb473c477 
								
							 
						 
						
							
							
								
								Driver: Call 'as' directly on FreeBSD.  
							
							... 
							
							
							
							- Patch by Ed Schouten!
llvm-svn: 68121 
							
						 
						
							2009-03-31 17:45:15 +00:00  
				
					
						
							
							
								 
						
							
								e24297c6b5 
								
							 
						 
						
							
							
								
								Driver: Sketch FreeBSD tool chain.  
							
							... 
							
							
							
							- Patch by Ed Schouten!
llvm-svn: 68061 
							
						 
						
							2009-03-30 21:06:03 +00:00  
				
					
						
							
							
								 
						
							
								53b406f40a 
								
							 
						 
						
							
							
								
								Driver: Track which original arguments an arg is derived from, so that  
							
							... 
							
							
							
							we can properly claim arguments, even if they have been translated by
the tool chain.
llvm-svn: 68020 
							
						 
						
							2009-03-29 22:29:05 +00:00  
				
					
						
							
							
								 
						
							
								f64f5307dc 
								
							 
						 
						
							
							
								
								Driver: Add test case for darwin::Preprocess and darwin::Compile  
							
							... 
							
							
							
							tools, and enable them.
llvm-svn: 68019 
							
						 
						
							2009-03-29 22:27:40 +00:00  
				
					
						
							
							
								 
						
							
								c196421fbc 
								
							 
						 
						
							
							
								
								Driver: Add darwin::Link tool.  
							
							... 
							
							
							
							- <rdar://problem/6717381> [driver] implement ld argument translation
   in new driver
llvm-svn: 67760 
							
						 
						
							2009-03-26 16:23:12 +00:00  
				
					
						
							
							
								 
						
							
								0af75a19a4 
								
							 
						 
						
							
							
								
								Driver: Implement Darwin_X86 tool chain level argument translation.  
							
							... 
							
							
							
							- This is really gross, but its the easiest way to match gcc. Once we
   are confident in the driver, we can try and push these translations
   down into tools.
 - No test cases for this yet, it's hard to see the effects of these
   translations before the gcc tool argument translation is pulled
   over.
 - Interaction with "unused argument" warning hasn't been worked out
   yet.
 - <rdar://problem/6717359> [driver] implement toolchain specific
   argument translation.
"It's horrible in here."
llvm-svn: 67683 
							
						 
						
							2009-03-25 06:58:31 +00:00  
				
					
						
							
							
								 
						
							
								aabb0b11a3 
								
							 
						 
						
							
							
								
								Driver: Handle -Xarch_, including warning for nasty -Xarch_ use cases  
							
							... 
							
							
							
							we aren't going to support. For example:
  clang -Xarch_i386 -S -Xarch_i386 -o -Xarch_i386 myi386asm.s ...
llvm-svn: 67680 
							
						 
						
							2009-03-25 06:12:34 +00:00  
				
					
						
							
							
								 
						
							
								dac54a81df 
								
							 
						 
						
							
							
								
								Driver: Prep for tool chain specific argument translation.  
							
							... 
							
							
							
							- Lift ArgList to a base class for InputArgList and DerivedArgList.
 
 - This is not a great decomposition, but it does embed the
   translation into the type system, and keep things efficient for
   tool chains that don't want to do any translation.
 - No intended functionality change.
Eventually I hope to get rid of tool chain specific translation and
have each tool do the right thing, but for now this is the easiest way
to match gcc precisely (which is good for testing).
llvm-svn: 67676 
							
						 
						
							2009-03-25 04:13:45 +00:00  
				
					
						
							
							
								 
						
							
								8fa879d39f 
								
							 
						 
						
							
							
								
								Move ToolChain::ShouldUseClangCompiler to  
							
							... 
							
							
							
							Driver::ShouldUseClangCompiler.
 - No functionality change.
llvm-svn: 67639 
							
						 
						
							2009-03-24 18:57:02 +00:00  
				
					
						
							
							
								 
						
							
								2dbe89af65 
								
							 
						 
						
							
							
								
								Install clang-cc to libexec/clang-cc (instead of bin/clang-cc).  
							
							... 
							
							
							
							- Updated ccc & driver to look in libexec/ for tools.
llvm-svn: 67607 
							
						 
						
							2009-03-24 04:07:10 +00:00  
				
					
						
							
							
								 
						
							
								76ce7416ae 
								
							 
						 
						
							
							
								
								Driver: Setup file and program search paths in tool chains.  
							
							... 
							
							
							
							llvm-svn: 67529 
							
						 
						
							2009-03-23 16:15:50 +00:00  
				
					
						
							
							
								 
						
							
								be2208472c 
								
							 
						 
						
							
							
								
								Driver: Add and use darwin::Assemble tool.  
							
							... 
							
							
							
							- Based on patch from Pieter de Bie; thanks!
llvm-svn: 67379 
							
						 
						
							2009-03-20 16:06:39 +00:00  
				
					
						
							
							
								 
						
							
								03e0a4f324 
								
							 
						 
						
							
							
								
								Driver: Sketch Darwin tool chains.  
							
							... 
							
							
							
							llvm-svn: 67356 
							
						 
						
							2009-03-20 00:57:52 +00:00  
				
					
						
							
							
								 
						
							
								59e5e880f3 
								
							 
						 
						
							
							
								
								Driver: Move tool chain implementations into ToolChains.cpp.  
							
							... 
							
							
							
							llvm-svn: 67350 
							
						 
						
							2009-03-20 00:20:03 +00:00