ccc6ea6c0b 
								
							 
						 
						
							
							
								
								Don't use PathV1.h in cc1as_main.cpp.  
							
							... 
							
							
							
							llvm-svn: 184938 
							
						 
						
							2013-06-26 12:48:34 +00:00  
				
					
						
							
							
								 
						
							
								da1e3e737a 
								
							 
						 
						
							
							
								
								Update to pass in pointers intead of references.  
							
							... 
							
							
							
							llvm-svn: 184176 
							
						 
						
							2013-06-18 07:22:05 +00:00  
				
					
						
							
							
								 
						
							
								898229ab4b 
								
							 
						 
						
							
							
								
								[Driver] Refactor clang driver to use LLVM's Option library  
							
							... 
							
							
							
							The big changes are:
- Deleting Driver/(Arg|Opt)*
- Rewriting includes to llvm/Option/ and re-sorting
- 'using namespace llvm::opt' in clang::driver
- Fixing the autoconf build by adding option everywhere
As discussed in the review, this change includes using directives in
header files.  I'll make follow up changes to remove those in favor of
name specifiers.
Reviewers: espindola
Differential Revision: http://llvm-reviews.chandlerc.com/D975 
llvm-svn: 183989 
							
						 
						
							2013-06-14 17:17:23 +00:00  
				
					
						
							
							
								 
						
							
								dcf73d2275 
								
							 
						 
						
							
							
								
								Don't depend on the transitive inclusion of PathV1.h.  
							
							... 
							
							
							
							llvm-svn: 183945 
							
						 
						
							2013-06-13 21:09:29 +00:00  
				
					
						
							
							
								 
						
							
								18556de316 
								
							 
						 
						
							
							
								
								Use the sys::RemoveFileOnSignal that takes a StringRef.  
							
							... 
							
							
							
							llvm-svn: 183944 
							
						 
						
							2013-06-13 21:02:40 +00:00  
				
					
						
							
							
								 
						
							
								77056237d7 
								
							 
						 
						
							
							
								
								Update for LLVM interface change in r181680.  
							
							... 
							
							
							
							llvm-svn: 181681 
							
						 
						
							2013-05-13 01:24:18 +00:00  
				
					
						
							
							
								 
						
							
								05c71aa745 
								
							 
						 
						
							
							
								
								Update the error handing static functions for r178161.  
							
							... 
							
							
							
							Part of rdar://13296693
llvm-svn: 178162 
							
						 
						
							2013-03-27 18:28:23 +00:00  
				
					
						
							
							
								 
						
							
								ae2ec4745f 
								
							 
						 
						
							
							
								
								We want the dwarf AT_producer for assembly source files to match clang's  
							
							... 
							
							
							
							AT_producer.  Which includes clang's version information so we can tell
which version of the compiler was used.
This is second of the two steps to allow us to do this.  The first was a
change to llvm-mc with revision 172630 to provide a method to set the
AT_producer string.  This second step has the clang driver passing the value
of getClangFullVersion() via the new flag -dwarf-debug-producer when invoking
the integrated assembler on assembly source files.  Then using the new
setDwarfDebugProducer() method to set the AT_producer string.
rdar://12888242
llvm-svn: 172758 
							
						 
						
							2013-01-17 21:38:06 +00:00  
				
					
						
							
							
								 
						
							
								ffd5551bc7 
								
							 
						 
						
							
							
								
								Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate to  
							
							... 
							
							
							
							reflect the migration in r171366.
Re-sort the #include lines to reflect the new paths.
llvm-svn: 171369 
							
						 
						
							2013-01-02 11:45:17 +00:00  
				
					
						
							
							
								 
						
							
								45f2e71571 
								
							 
						 
						
							
							
								
								Add support for passing the main file name down to the assembler  
							
							... 
							
							
							
							for location information.
Part of PR14624
llvm-svn: 170391 
							
						 
						
							2012-12-18 00:31:10 +00:00  
				
					
						
							
							
								 
						
							
								4d5e1a9b34 
								
							 
						 
						
							
							
								
								Fix PR14625 by teaching the driver to detect PWD for assembly files.  
							
							... 
							
							
							
							This also requires adding support to -cc1as for passing the detecting
PWD down through LLVM's debug info (which in turn required the LLVM
change in r170371).
The test case is weak (we only test the driver behavior) because there
is currently to infrastructure for running cc1as in the test suite. So
those four lines are untested (much like all other lines in that file),
but we have a test for the same pattern using llvm-mc in the LLVM
repository.
llvm-svn: 170373 
							
						 
						
							2012-12-17 21:40:04 +00:00  
				
					
						
							
							
								 
						
							
								cc0694c8a4 
								
							 
						 
						
							
							
								
								Sort #include lines for tools/...  
							
							... 
							
							
							
							Completely automated with sort_includes.py
llvm-svn: 169240 
							
						 
						
							2012-12-04 09:25:21 +00:00  
				
					
						
							
							
								 
						
							
								bd55daf2ee 
								
							 
						 
						
							
							
								
								Remove first argument from Arg::getValue; it's been unused since r105760.  
							
							... 
							
							
							
							llvm-svn: 167211 
							
						 
						
							2012-11-01 04:30:05 +00:00  
				
					
						
							
							
								 
						
							
								811db4eac4 
								
							 
						 
						
							
							
								
								Make DiagnosticOptions intrusively reference-counted, and make sure  
							
							... 
							
							
							
							the various stakeholders bump up the reference count. In particular,
the diagnostics engine now keeps the DiagnosticOptions object alive.
llvm-svn: 166508 
							
						 
						
							2012-10-23 22:26:28 +00:00  
				
					
						
							
							
								 
						
							
								dd31ca10ef 
								
							 
						 
						
							
							
								
								Move TargetData to DataLayout.  
							
							... 
							
							
							
							llvm-svn: 165395 
							
						 
						
							2012-10-08 16:25:52 +00:00  
				
					
						
							
							
								 
						
							
								5bebfb7363 
								
							 
						 
						
							
							
								
								Follow up on llvm r164132.  
							
							... 
							
							
							
							llvm-svn: 164133 
							
						 
						
							2012-09-18 16:09:16 +00:00  
				
					
						
							
							
								 
						
							
								490950a928 
								
							 
						 
						
							
							
								
								Allow MCCodeEmitter access to the target MCRegisterInfo.  
							
							... 
							
							
							
							Add MRI to the createMCCodeEmitter() call.
llvm-svn: 156830 
							
						 
						
							2012-05-15 17:36:07 +00:00  
				
					
						
							
							
								 
						
							
								f4ec97d9b0 
								
							 
						 
						
							
							
								
								Fix build by passing in the needed variable after r153860.  
							
							... 
							
							
							
							llvm-svn: 153861 
							
						 
						
							2012-04-02 06:17:37 +00:00  
				
					
						
							
							
								 
						
							
								6c258a891f 
								
							 
						 
						
							
							
								
								Add MCRegisterInfo to the MCInstPrinter factory function interface.  
							
							... 
							
							
							
							llvm-svn: 152046 
							
						 
						
							2012-03-05 19:33:41 +00:00  
				
					
						
							
							
								 
						
							
								c95d81924d 
								
							 
						 
						
							
							
								
								Basic: import IntrusiveRefCntPtr<> into clang namespace  
							
							... 
							
							
							
							The class name is long enough without the llvm:: added.
Also bring in RefCountedBase and RefCountedBaseVPTR.
llvm-svn: 150958 
							
						 
						
							2012-02-20 14:00:23 +00:00  
				
					
						
							
							
								 
						
							
								1cd1069b68 
								
							 
						 
						
							
							
								
								drop more llvm:: prefixes on OwningPtr<>  
							
							... 
							
							
							
							More cleanup after r149798.
llvm-svn: 150379 
							
						 
						
							2012-02-13 12:32:21 +00:00  
				
					
						
							
							
								 
						
							
								576452b830 
								
							 
						 
						
							
							
								
								Have the driver pass CPU and target feature information to cc1as.  
							
							... 
							
							
							
							When creating the MCSubtargetInfo, the assembler driver uses the CPU and
feature string to construct a more accurate model of what instructions
are and are not legal.
rdar://10840476
llvm-svn: 150273 
							
						 
						
							2012-02-10 20:37:10 +00:00  
				
					
						
							
							
								 
						
							
								09d20eefaa 
								
							 
						 
						
							
							
								
								Make use of const-correct ParseCommandLineOptions  
							
							... 
							
							
							
							llvm-svn: 150000 
							
						 
						
							2012-02-07 19:36:38 +00:00  
				
					
						
							
							
								 
						
							
								ff3789a6bb 
								
							 
						 
						
							
							
								
								Pass the SourceMgr to the MCContext for cc1as.  
							
							... 
							
							
							
							llvm-svn: 149608 
							
						 
						
							2012-02-02 17:54:07 +00:00  
				
					
						
							
							
								 
						
							
								68207c0b26 
								
							 
						 
						
							
							
								
								driver: fix unused variable warning  
							
							... 
							
							
							
							from r147218.
llvm-svn: 147278 
							
						 
						
							2011-12-26 19:29:47 +00:00  
				
					
						
							
							
								 
						
							
								e99b27f35e 
								
							 
						 
						
							
							
								
								Let CompilerInvocation initialization indicate failure  
							
							... 
							
							
							
							This fixes the FIXMEs in ParseAnalyzeArgs. (Also a
precursor to moving the analyzer into an AST plugin.)
For consistency, do the same with AssemblerInvocation.
llvm-svn: 147218 
							
						 
						
							2011-12-23 03:05:38 +00:00  
				
					
						
							
							
								 
						
							
								292dc080e0 
								
							 
						 
						
							
							
								
								Last part of support for generating dwarf for assembly source files.  This gets  
							
							... 
							
							
							
							the clang driver to enable this when assembling a .s file.  rdar://9275556
llvm-svn: 147167 
							
						 
						
							2011-12-22 19:31:58 +00:00  
				
					
						
							
							
								 
						
							
								8188c8a1f3 
								
							 
						 
						
							
							
								
								rename getHostTriple into getDefaultTargetTriple in clang  
							
							... 
							
							
							
							llvm-svn: 143503 
							
						 
						
							2011-11-01 21:33:06 +00:00  
				
					
						
							
							
								 
						
							
								1d617acef9 
								
							 
						 
						
							
							
								
								Wire up support for the controlling the extended dwarf .file directive. With  
							
							... 
							
							
							
							r142300 but not this patch, clang -S may emit .s files that assemblers other
than llvm-mc can't parse.
llvm-svn: 142301 
							
						 
						
							2011-10-17 23:05:52 +00:00  
				
					
						
							
							
								 
						
							
								9c902b5502 
								
							 
						 
						
							
							
								
								Rename Diagnostic to DiagnosticsEngine as per issue 5397  
							
							... 
							
							
							
							llvm-svn: 140478 
							
						 
						
							2011-09-25 23:23:43 +00:00  
				
					
						
							
							
								 
						
							
								98f3e18f25 
								
							 
						 
						
							
							
								
								Fix up MCInstPrinter creation to take the new SubtargetInfo parameter (see LLVM r139237)  
							
							... 
							
							
							
							llvm-svn: 139238 
							
						 
						
							2011-09-07 17:25:30 +00:00  
				
					
						
							
							
								 
						
							
								494eb062b5 
								
							 
						 
						
							
							
								
								Match LLVM change: TargetRegistry and TargetSelect have been moved to Support.  
							
							... 
							
							
							
							llvm-svn: 138451 
							
						 
						
							2011-08-24 18:09:14 +00:00  
				
					
						
							
							
								 
						
							
								acb07b599c 
								
							 
						 
						
							
							
								
								Update createMCAsmParser() to match r137735.  
							
							... 
							
							
							
							llvm-svn: 137736 
							
						 
						
							2011-08-16 18:33:55 +00:00  
				
					
						
							
							
								 
						
							
								5a7a4ea505 
								
							 
						 
						
							
							
								
								Assembler really doesn't need to create TargetMachine anymore.  
							
							... 
							
							
							
							llvm-svn: 136045 
							
						 
						
							2011-07-26 01:49:26 +00:00  
				
					
						
							
							
								 
						
							
								9568f27950 
								
							 
						 
						
							
							
								
								Rename createCodeEmitter to createMCCodeEmitter; createObjectStreamer to createMCObjectStreamer.  
							
							... 
							
							
							
							llvm-svn: 136032 
							
						 
						
							2011-07-26 00:42:40 +00:00  
				
					
						
							
							
								 
						
							
								939f809ce9 
								
							 
						 
						
							
							
								
								Rename createAsmParser to createMCAsmParser.  
							
							... 
							
							
							
							llvm-svn: 136029 
							
						 
						
							2011-07-26 00:24:45 +00:00  
				
					
						
							
							
								 
						
							
								4b89983662 
								
							 
						 
						
							
							
								
								Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend.  
							
							... 
							
							
							
							llvm-svn: 136011 
							
						 
						
							2011-07-25 23:25:09 +00:00  
				
					
						
							
							
								 
						
							
								c2d8c6be92 
								
							 
						 
						
							
							
								
								Assembler doesn't need to initialize TargetMachine's anymore.  
							
							... 
							
							
							
							llvm-svn: 135964 
							
						 
						
							2011-07-25 20:53:26 +00:00  
				
					
						
							
							
								 
						
							
								06e70d33fc 
								
							 
						 
						
							
							
								
								Move TargetAsmParser.h TargetAsmBackend.h and TargetAsmLexer.h to MC where they belong.  
							
							... 
							
							
							
							llvm-svn: 135834 
							
						 
						
							2011-07-23 00:45:53 +00:00  
				
					
						
							
							
								 
						
							
								c391a58b2b 
								
							 
						 
						
							
							
								
								Match LLVM API change.  
							
							... 
							
							
							
							llvm-svn: 135813 
							
						 
						
							2011-07-22 21:59:11 +00:00  
				
					
						
							
							
								 
						
							
								b5517a4d8c 
								
							 
						 
						
							
							
								
								Match MCContext change.  
							
							... 
							
							
							
							llvm-svn: 135612 
							
						 
						
							2011-07-20 19:53:19 +00:00  
				
					
						
							
							
								 
						
							
								347033fd8b 
								
							 
						 
						
							
							
								
								Match LLVM API change.  
							
							... 
							
							
							
							llvm-svn: 135570 
							
						 
						
							2011-07-20 06:22:27 +00:00  
				
					
						
							
							
								 
						
							
								3f37dd065b 
								
							 
						 
						
							
							
								
								Match createTargetMachine API change.  
							
							... 
							
							
							
							llvm-svn: 135469 
							
						 
						
							2011-07-19 06:37:41 +00:00  
				
					
						
							
							
								 
						
							
								b505ace101 
								
							 
						 
						
							
							
								
								MCContext now takes MCRegisterInfo.  
							
							... 
							
							
							
							llvm-svn: 135425 
							
						 
						
							2011-07-18 20:57:51 +00:00  
				
					
						
							
							
								 
						
							
								6d188f5f1c 
								
							 
						 
						
							
							
								
								Match llvm API change.  
							
							... 
							
							
							
							llvm-svn: 135220 
							
						 
						
							2011-07-14 23:50:56 +00:00  
				
					
						
							
							
								 
						
							
								279f2907ed 
								
							 
						 
						
							
							
								
								Match createCodeEmitter change.  
							
							... 
							
							
							
							llvm-svn: 134885 
							
						 
						
							2011-07-11 04:24:19 +00:00  
				
					
						
							
							
								 
						
							
								e3531fcf88 
								
							 
						 
						
							
							
								
								Unbreak -cc1as mode after MC subtarget changes  
							
							... 
							
							
							
							llvm-svn: 134877 
							
						 
						
							2011-07-10 19:16:25 +00:00  
				
					
						
							
							
								 
						
							
								dec3187e7f 
								
							 
						 
						
							
							
								
								createAsmParser API change.  
							
							... 
							
							
							
							llvm-svn: 134797 
							
						 
						
							2011-07-09 06:04:17 +00:00  
				
					
						
							
							
								 
						
							
								961995dc9a 
								
							 
						 
						
							
							
								
								Update the creation of the TargetAsmParser based on API change in r134678.  
							
							... 
							
							
							
							llvm-svn: 134680 
							
						 
						
							2011-07-08 03:15:48 +00:00  
				
					
						
							
							
								 
						
							
								299b36fa72 
								
							 
						 
						
							
							
								
								createMCInstPrinter doesn't need TargetMachine anymore.  
							
							... 
							
							
							
							llvm-svn: 134526 
							
						 
						
							2011-07-06 19:45:57 +00:00