36e60e9127 
								
							 
						 
						
							
							
								
								MC: Clean up naming in MCObjectWriter. NFC.  
							
							... 
							
							
							
							s/WriteObject/writeObject/
s/RecordRelocation/recordRelocation/
s/IsSymbolRefDifferenceFullyResolved/isSymbolRefDifferenceFullyResolved/
s/Write8/write8/
s/WriteLE16/writeLE16/
s/WriteLE32/writeLE32/
s/WriteLE64/writeLE64/
s/WriteBE16/writeBE16/
s/WriteBE32/writeBE32/
s/WriteBE64/writeBE64/
s/Write16/write16/
s/Write32/write32/
s/Write64/write64/
s/WriteZeroes/writeZeroes/
s/WriteBytes/writeBytes/
llvm-svn: 239108 
							
						 
						
							2015-06-04 22:24:41 +00:00  
				
					
						
							
							
								 
						
							
								35e04e84fa 
								
							 
						 
						
							
							
								
								[Sparc] Repair fixups in little endian mode.  
							
							... 
							
							
							
							Differential Revision: http://reviews.llvm.org/D9434 
llvm-svn: 236324 
							
						 
						
							2015-05-01 17:13:02 +00:00  
				
					
						
							
							
								 
						
							
								9160e78ac8 
								
							 
						 
						
							
							
								
								[Sparc] Really add sparcel architecture support.  
							
							... 
							
							
							
							Mostly copy-and-paste from Sparc v8 architecture.
Differential Revision: http://reviews.llvm.org/D8741 
llvm-svn: 236146 
							
						 
						
							2015-04-29 20:30:57 +00:00  
				
					
						
							
							
								 
						
							
								5560a4cfbd 
								
							 
						 
						
							
							
								
								Use raw_pwrite_stream in the object writer/streamer.  
							
							... 
							
							
							
							The ELF object writer will take advantage of that in the next commit.
llvm-svn: 234950 
							
						 
						
							2015-04-14 22:14:34 +00:00  
				
					
						
							
							
								 
						
							
								35b2f75733 
								
							 
						 
						
							
							
								
								Convert some assert(0) to llvm_unreachable or fold an 'if' condition into the assert.  
							
							... 
							
							
							
							llvm-svn: 211254 
							
						 
						
							2014-06-19 06:10:58 +00:00  
				
					
						
							
							
								 
						
							
								2a30d7889f 
								
							 
						 
						
							
							
								
								Replace some assert(0)'s with llvm_unreachable.  
							
							... 
							
							
							
							llvm-svn: 211141 
							
						 
						
							2014-06-18 05:05:13 +00:00  
				
					
						
							
							
								 
						
							
								b0c941bebd 
								
							 
						 
						
							
							
								
								[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. Sparc edition  
							
							... 
							
							
							
							llvm-svn: 207502 
							
						 
						
							2014-04-29 07:57:13 +00:00  
				
					
						
							
							
								 
						
							
								5904e12bfa 
								
							 
						 
						
							
							
								
								Completely rewrite ELFObjectWriter::RecordRelocation.  
							
							... 
							
							
							
							I started trying to fix a small issue, but this code has seen a small fix too
many.
The old code was fairly convoluted. Some of the issues it had:
* It failed to check if a symbol difference was in the some section when
  converting a relocation to pcrel.
* It failed to check if the relocation was already pcrel.
* The pcrel value computation was wrong in some cases (relocation-pc.s)
* It was missing quiet a few cases where it should not convert symbol
  relocations to section relocations, leaving the backends to patch it up.
* It would not propagate the fact that it had changed a relocation to pcrel,
  requiring a quiet nasty work around in ARM.
* It was missing comments.
llvm-svn: 205076 
							
						 
						
							2014-03-29 06:26:49 +00:00  
				
					
						
							
							
								 
						
							
								d7610a5d67 
								
							 
						 
						
							
							
								
								Add const to a method I missed in the previous commit.  
							
							... 
							
							
							
							llvm-svn: 205014 
							
						 
						
							2014-03-28 16:14:12 +00:00  
				
					
						
							
							
								 
						
							
								b745e67a64 
								
							 
						 
						
							
							
								
								[SparcV9] Adds support for branch on integer register instructions (BPr) and conditional moves on integer register (MOVr/FMOVr).  
							
							... 
							
							
							
							llvm-svn: 202628 
							
						 
						
							2014-03-02 09:46:56 +00:00  
				
					
						
							
							
								 
						
							
								2b1682bcd4 
								
							 
						 
						
							
							
								
								[Sparc] Implement writeNopData. Emit actual NOP instruction instead of just filling with zeroes.  
							
							... 
							
							
							
							llvm-svn: 202572 
							
						 
						
							2014-03-01 05:45:09 +00:00  
				
					
						
							
							
								 
						
							
								9fc29098df 
								
							 
						 
						
							
							
								
								[Sparc] Teach SparcAsmParser to emit correct relocations for PIC code.  
							
							... 
							
							
							
							llvm-svn: 202571 
							
						 
						
							2014-03-01 05:07:21 +00:00  
				
					
						
							
							
								 
						
							
								fd07500dd1 
								
							 
						 
						
							
							
								
								[Sparc] Emit relocations for Thread Local Storage (TLS) when integrated assembler is used.  
							
							... 
							
							
							
							llvm-svn: 200962 
							
						 
						
							2014-02-07 05:54:20 +00:00  
				
					
						
							
							
								 
						
							
								104643d0aa 
								
							 
						 
						
							
							
								
								[Sparc] Emit correct relocations for PIC code when integrated assembler is used.  
							
							... 
							
							
							
							llvm-svn: 200961 
							
						 
						
							2014-02-07 04:24:35 +00:00  
				
					
						
							
							
								 
						
							
								4998280fdf 
								
							 
						 
						
							
							
								
								Just returning false is the default.  
							
							... 
							
							
							
							llvm-svn: 200890 
							
						 
						
							2014-02-06 00:03:15 +00:00  
				
					
						
							
							
								 
						
							
								f691e2c230 
								
							 
						 
						
							
							
								
								[Sparc] Correct the mask for fixup_sparc_br19.  
							
							... 
							
							
							
							llvm-svn: 198739 
							
						 
						
							2014-01-08 06:46:51 +00:00  
				
					
						
							
							
								 
						
							
								8a8cd2bab9 
								
							 
						 
						
							
							
								
								Re-sort all of the includes with ./utils/sort_includes.py so that  
							
							... 
							
							
							
							subsequent changes are easier to review. About to fix some layering
issues, and wanted to separate out the necessary churn.
Also comment and sink the include of "Windows.h" in three .inc files to
match the usage in Memory.inc.
llvm-svn: 198685 
							
						 
						
							2014-01-07 11:48:04 +00:00  
				
					
						
							
							
								 
						
							
								559c4ac377 
								
							 
						 
						
							
							
								
								[Sparc] Add support for parsing sparc asm modifiers such as %hi, %lo etc.,  
							
							... 
							
							
							
							Also, correct the offsets for FixupsKindInfo.
llvm-svn: 198681 
							
						 
						
							2014-01-07 08:00:49 +00:00  
				
					
						
							
							
								 
						
							
								b73aeca888 
								
							 
						 
						
							
							
								
								[Sparc] Add ELF Object Writer for Sparc.  
							
							... 
							
							
							
							llvm-svn: 198580 
							
						 
						
							2014-01-06 01:22:54 +00:00  
				
					
						
							
							
								 
						
							
								5f1cce50e6 
								
							 
						 
						
							
							
								
								[Sparc] Add initial implementation of MC Code emitter for sparc.  
							
							... 
							
							
							
							llvm-svn: 198533 
							
						 
						
							2014-01-05 02:13:48 +00:00