e4405e949f 
								
							 
						 
						
							
							
								
								[ADT] Switch a bunch of places in LLVM that were doing single-character  
							
							... 
							
							
							
							splits to actually use the single character split routine which does
less work, and in a debug build is *substantially* faster.
llvm-svn: 247245 
							
						 
						
							2015-09-10 06:12:31 +00:00  
				
					
						
							
							
								 
						
							
								8ca44f0b5c 
								
							 
						 
						
							
							
								
								Implement unique sections with an unique ID.  
							
							... 
							
							
							
							This allows the compiler/assembly programmer to switch back to a
section. This in turn fixes the bootstrap failure on powerpc (tested
on gcc110) without changing the ppc codegen at all.
I will try to cleanup the various getELFSection overloads in a  followup patch.
Just using a default argument now would lead to ambiguities.
llvm-svn: 234099 
							
						 
						
							2015-04-04 18:02:01 +00:00  
				
					
						
							
							
								 
						
							
								b61beca40c 
								
							 
						 
						
							
							
								
								Close unique sections when switching away from them.  
							
							... 
							
							
							
							It is not possible to switch back to unique secitons, so close them
automatically when switching away.
llvm-svn: 233380 
							
						 
						
							2015-03-27 15:01:40 +00:00  
				
					
						
							
							
								 
						
							
								6b9998b3eb 
								
							 
						 
						
							
							
								
								Create symbols marking the start of a section earlier.  
							
							... 
							
							
							
							This lets us pass the symbol to the constructor and avoid the mutable field.
This also opens the way for outputting the symbol only when needed, instead
of outputting them at the start of the file.
llvm-svn: 231859 
							
						 
						
							2015-03-10 22:00:25 +00:00  
				
					
						
							
							
								 
						
							
								bb694de649 
								
							 
						 
						
							
							
								
								[C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr.  
							
							... 
							
							
							
							llvm-svn: 206129 
							
						 
						
							2014-04-13 04:57:38 +00:00  
				
					
						
							
							
								 
						
							
								596587f6d0 
								
							 
						 
						
							
							
								
								MC: Appease the buildbots  
							
							... 
							
							
							
							This is fallout from r203429.
llvm-svn: 203430 
							
						 
						
							2014-03-10 01:04:18 +00:00  
				
					
						
							
							
								 
						
							
								e500ec1f3a 
								
							 
						 
						
							
							
								
								MC: Cleanup MCSectionMachO::ParseSectionSpecifier  
							
							... 
							
							
							
							Split by comma once instead of multiple times.  Moving this upfront
makes the rest of the code considerably simpler.
No functional change.
llvm-svn: 203429 
							
						 
						
							2014-03-10 00:55:07 +00:00  
				
					
						
							
							
								 
						
							
								cd481d3845 
								
							 
						 
						
							
							
								
								MC: Use MachO::SectionType for MCSectionMachO::getType's return type  
							
							... 
							
							
							
							This is a straightfoward replacement, it makes debugging a little
easier.
This has no functional impact.
llvm-svn: 203264 
							
						 
						
							2014-03-07 18:49:54 +00:00  
				
					
						
							
							
								 
						
							
								7b58305ff6 
								
							 
						 
						
							
							
								
								MC: Remove superfluous section attribute flag definitions  
							
							... 
							
							
							
							Summary:
llvm/MC/MCSectionMachO.h and llvm/Support/MachO.h both had the same
definitions for the section flags.  Instead, grab the definitions out of
support.
No functionality change.
Reviewers: grosbach, Bigcheese, rafael
Reviewed By: rafael
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2998 
llvm-svn: 203211 
							
						 
						
							2014-03-07 07:36:05 +00:00  
				
					
						
							
							
								 
						
							
								f907b891da 
								
							 
						 
						
							
							
								
								Correct word hyphenations  
							
							... 
							
							
							
							This patch tries to avoid unrelated changes other than fixing a few
hyphen-related ambiguities and contractions in nearby lines.
llvm-svn: 196471 
							
						 
						
							2013-12-05 05:44:44 +00:00  
				
					
						
							
							
								 
						
							
								2f495b93ee 
								
							 
						 
						
							
							
								
								Add support for subsections to the ELF assembler. Fixes PR8717.  
							
							... 
							
							
							
							Differential Revision: http://llvm-reviews.chandlerc.com/D598 
llvm-svn: 179725 
							
						 
						
							2013-04-17 21:18:16 +00:00  
				
					
						
							
							
								 
						
							
								83c74e9fad 
								
							 
						 
						
							
							
								
								Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.  
							
							... 
							
							
							
							llvm-svn: 175006 
							
						 
						
							2013-02-12 21:21:59 +00:00  
				
					
						
							
							
								 
						
							
								12d5312622 
								
							 
						 
						
							
							
								
								Reapply 127939 since Daniel fixed the breakage.  <rdar://problem/9012638>  
							
							... 
							
							
							
							llvm-svn: 127944 
							
						 
						
							2011-03-19 02:42:31 +00:00  
				
					
						
							
							
								 
						
							
								08b4daa191 
								
							 
						 
						
							
							
								
								Revert 127939.  <rdar://problem/9012638>  
							
							... 
							
							
							
							llvm-svn: 127943 
							
						 
						
							2011-03-19 02:33:56 +00:00  
				
					
						
							
							
								 
						
							
								83d4a28d1f 
								
							 
						 
						
							
							
								
								Revise r126127 to address Daniel's comments.  <rdar://problem/9012638>  
							
							... 
							
							
							
							llvm-svn: 127939 
							
						 
						
							2011-03-19 01:32:01 +00:00  
				
					
						
							
							
								 
						
							
								d7927e0fcd 
								
							 
						 
						
							
							
								
								End the line if we return early.  Radar 9012638.  
							
							... 
							
							
							
							llvm-svn: 126141 
							
						 
						
							2011-02-21 21:07:07 +00:00  
				
					
						
							
							
								 
						
							
								b4863a41e9 
								
							 
						 
						
							
							
								
								Fix to correctly support attribute((section("__DATA, __common"))).  
							
							... 
							
							
							
							Radar 9012638.
llvm-svn: 126127 
							
						 
						
							2011-02-21 17:27:17 +00:00  
				
					
						
							
							
								 
						
							
								0de20af7ba 
								
							 
						 
						
							
							
								
								Add missing standard headers. Patch by Joerg Sonnenberger!  
							
							... 
							
							
							
							llvm-svn: 122193 
							
						 
						
							2010-12-19 20:43:38 +00:00  
				
					
						
							
							
								 
						
							
								7a2cd8b540 
								
							 
						 
						
							
							
								
								make isVirtualSection a virtual method on MCSection. Chris' suggestion.  
							
							... 
							
							
							
							llvm-svn: 119547 
							
						 
						
							2010-11-17 20:03:54 +00:00  
				
					
						
							
							
								 
						
							
								90600d3329 
								
							 
						 
						
							
							
								
								Trailing whitespace.  
							
							... 
							
							
							
							llvm-svn: 117073 
							
						 
						
							2010-10-21 22:04:05 +00:00  
				
					
						
							
							
								 
						
							
								87f77b5f9a 
								
							 
						 
						
							
							
								
								Add hook in MCSection to decide when to use "optimized nops", for each  
							
							... 
							
							
							
							section kind. Previously, optimized nops were only used for MachO.
Also added tests for ELF and COFF.
llvm-svn: 115523 
							
						 
						
							2010-10-04 17:32:41 +00:00  
				
					
						
							
							
								 
						
							
								3dca28d0e2 
								
							 
						 
						
							
							
								
								Fix section attribute name.  
							
							... 
							
							
							
							llvm-svn: 104381 
							
						 
						
							2010-05-21 21:08:52 +00:00  
				
					
						
							
							
								 
						
							
								ce5e1bb326 
								
							 
						 
						
							
							
								
								MC: Add dyn_cast support to MCSection.  
							
							... 
							
							
							
							- Of questionable utility, since in general anything which wants to do this should probably be within a target specific hook, which can rely on the sections being of the appropriate type. However, it can be useful for short term hacks.
llvm-svn: 103980 
							
						 
						
							2010-05-17 21:54:26 +00:00  
				
					
						
							
							
								 
						
							
								bf79238599 
								
							 
						 
						
							
							
								
								Add some section and constant support for darwin TLS.  
							
							... 
							
							
							
							llvm-svn: 103974 
							
						 
						
							2010-05-17 21:02:07 +00:00  
				
					
						
							
							
								 
						
							
								5418dd5fda 
								
							 
						 
						
							
							
								
								move elf section uniquing to MCContext.  Along the way  
							
							... 
							
							
							
							merge XCore's section into MCSectionELF
llvm-svn: 100812 
							
						 
						
							2010-04-08 21:26:26 +00:00  
				
					
						
							
							
								 
						
							
								ad36e8aceb 
								
							 
						 
						
							
							
								
								Pass StringRef by value.  
							
							... 
							
							
							
							llvm-svn: 86251 
							
						 
						
							2009-11-06 10:58:06 +00:00  
				
					
						
							
							
								 
						
							
								818b6b96cb 
								
							 
						 
						
							
							
								
								Fixed MCSectionMachO::ParseSectionSpecifier to allow an attribute of "none" so  
							
							... 
							
							
							
							that a symbol stub section with no attributes can be parsed as in:
.section __TEXT,__picsymbolstub4,symbol_stubs,none,16
llvm-svn: 83488 
							
						 
						
							2009-10-07 20:57:20 +00:00  
				
					
						
							
							
								 
						
							
								a15f0044a0 
								
							 
						 
						
							
							
								
								eliminate a use of strtoul.  
							
							... 
							
							
							
							llvm-svn: 82382 
							
						 
						
							2009-09-20 06:58:54 +00:00  
				
					
						
							
							
								 
						
							
								e9a75a6654 
								
							 
						 
						
							
							
								
								rename TAI -> MAI, being careful not to make MAILJMP instructions :)  
							
							... 
							
							
							
							llvm-svn: 79777 
							
						 
						
							2009-08-22 21:43:10 +00:00  
				
					
						
							
							
								 
						
							
								7b26fce23e 
								
							 
						 
						
							
							
								
								Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.  
							
							... 
							
							
							
							llvm-svn: 79763 
							
						 
						
							2009-08-22 20:48:53 +00:00  
				
					
						
							
							
								 
						
							
								6c20391d38 
								
							 
						 
						
							
							
								
								split MachO section handling stuff out to its out .h/.cpp file.  
							
							... 
							
							
							
							llvm-svn: 78576 
							
						 
						
							2009-08-10 18:15:01 +00:00