2073112fc0 
								
							 
						 
						
							
							
								
								move macho section uniquing from MCParser and TLOF to MCContext where  
							
							... 
							
							
							
							the compiler and asmparser now unique to the same sections.  This fixes
rdar://7835021.
llvm-svn: 100807 
							
						 
						
							2010-04-08 20:30:37 +00:00  
				
					
						
							
							
								 
						
							
								9897043928 
								
							 
						 
						
							
							
								
								Rip out the 'is temporary' nonsense from the MCContext interface to  
							
							... 
							
							
							
							create symbols.  It is extremely error prone and a source of a lot
of the remaining integrated assembler bugs on x86-64.
This fixes rdar://7807601.
llvm-svn: 99902 
							
						 
						
							2010-03-30 18:10:53 +00:00  
				
					
						
							
							
								 
						
							
								aed00fa039 
								
							 
						 
						
							
							
								
								fix GetOrCreateTemporarySymbol to require a name, clients  
							
							... 
							
							
							
							should use CreateTempSymbol() if they don't care about the
name.
llvm-svn: 98712 
							
						 
						
							2010-03-17 05:41:18 +00:00  
				
					
						
							
							
								 
						
							
								133487696a 
								
							 
						 
						
							
							
								
								fix a memory leak yjasskin pointed out: MCSymbol is bump pointer  
							
							... 
							
							
							
							allocated and thus not freed.  This is cool except that it contains
and std::string so the string data didn't get freed.  In any case
there is no reason to redundantly store the string data in the 
MCSymbol anyway, just make the MCSymbol ref the string data in the
MCContext StringMap.
llvm-svn: 98536 
							
						 
						
							2010-03-15 06:15:35 +00:00  
				
					
						
							
							
								 
						
							
								073d817958 
								
							 
						 
						
							
							
								
								add a new CreateTempSymbol method, the use case for  
							
							... 
							
							
							
							CreateTempSymbol vs GetOrCreateTemporarySymbol are
completely different.
llvm-svn: 98486 
							
						 
						
							2010-03-14 08:23:30 +00:00  
				
					
						
							
							
								 
						
							
								d3691dd04b 
								
							 
						 
						
							
							
								
								enhance MCContext::GetOrCreateTemporarySymbol() to create a new symbol  
							
							... 
							
							
							
							with an arbitrary unique name.
llvm-svn: 98294 
							
						 
						
							2010-03-11 22:56:10 +00:00  
				
					
						
							
							
								 
						
							
								768ea2add2 
								
							 
						 
						
							
							
								
								change MCContext to always have an MCAsmInfo.  
							
							... 
							
							
							
							llvm-svn: 98293 
							
						 
						
							2010-03-11 22:53:35 +00:00  
				
					
						
							
							
								 
						
							
								216e7299d7 
								
							 
						 
						
							
							
								
								empty symbols aren't possible, the mcsymbol ctor aborts on them.  
							
							... 
							
							
							
							llvm-svn: 98288 
							
						 
						
							2010-03-11 21:38:58 +00:00  
				
					
						
							
							
								 
						
							
								7e3283c055 
								
							 
						 
						
							
							
								
								Remove unneeded includes.  
							
							... 
							
							
							
							llvm-svn: 98167 
							
						 
						
							2010-03-10 17:56:05 +00:00  
				
					
						
							
							
								 
						
							
								b973ea88b5 
								
							 
						 
						
							
							
								
								eliminate MCContext::CreateSymbol and CreateTemporarySymbol.  
							
							... 
							
							
							
							Add a new GetOrCreateTemporarySymbol method and a version that
takes a twine.
llvm-svn: 98118 
							
						 
						
							2010-03-10 01:29:27 +00:00  
				
					
						
							
							
								 
						
							
								ad36e8aceb 
								
							 
						 
						
							
							
								
								Pass StringRef by value.  
							
							... 
							
							
							
							llvm-svn: 86251 
							
						 
						
							2009-11-06 10:58:06 +00:00  
				
					
						
							
							
								 
						
							
								86dfd73c38 
								
							 
						 
						
							
							
								
								add a twine version of MCContext::GetOrCreateSymbol.  
							
							... 
							
							
							
							llvm-svn: 84561 
							
						 
						
							2009-10-19 22:49:00 +00:00  
				
					
						
							
							
								 
						
							
								584a1b25ef 
								
							 
						 
						
							
							
								
								MC: Switch MCContext value table to storing MCExprs.  
							
							... 
							
							
							
							llvm-svn: 84228 
							
						 
						
							2009-10-16 01:33:11 +00:00  
				
					
						
							
							
								 
						
							
								e73b267301 
								
							 
						 
						
							
							
								
								llvm-mc/Mach-O: Don't put assembler temporary labels in the symbol table.  
							
							... 
							
							
							
							- I moved section creation back into AsmParser. I think policy decisions like
   this should be pushed higher, not lower, when possible (in addition the
   assembler has flags which change this behavior, for example).
llvm-svn: 80162 
							
						 
						
							2009-08-26 22:13:22 +00:00  
				
					
						
							
							
								 
						
							
								ffda9eb31a 
								
							 
						 
						
							
							
								
								llvm-mc: Change MCContext value table to take const MCSymbol*s.  
							
							... 
							
							
							
							llvm-svn: 80079 
							
						 
						
							2009-08-26 09:16:57 +00:00  
				
					
						
							
							
								 
						
							
								04b4700ebc 
								
							 
						 
						
							
							
								
								sink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.  
							
							... 
							
							
							
							MCContext no longer maintains a string -> section map.
llvm-svn: 78874 
							
						 
						
							2009-08-13 00:37:15 +00:00  
				
					
						
							
							
								 
						
							
								b691316838 
								
							 
						 
						
							
							
								
								add some comments: MCContext owns the MCSections, but it bump pointer allocates  
							
							... 
							
							
							
							them, so it doesn't have to explicitly free them.
llvm-svn: 78870 
							
						 
						
							2009-08-13 00:21:53 +00:00  
				
					
						
							
							
								 
						
							
								c10132aa79 
								
							 
						 
						
							
							
								
								split MCSection stuff out to its own .cpp file, add a new  
							
							... 
							
							
							
							MCSectionWithKind subclass of MCSection.
llvm-svn: 77684 
							
						 
						
							2009-07-31 17:02:00 +00:00  
				
					
						
							
							
								 
						
							
								b37f29b6f3 
								
							 
						 
						
							
							
								
								create sections with MCSection::Create instead of Context->getOrCreateSection.  
							
							... 
							
							
							
							This is needed to allow polymorphic sections.
llvm-svn: 77680 
							
						 
						
							2009-07-31 16:43:49 +00:00  
				
					
						
							
							
								 
						
							
								a87555aaa8 
								
							 
						 
						
							
							
								
								Move MCContext and friends to StringRef based APIs.  
							
							... 
							
							
							
							llvm-svn: 77251 
							
						 
						
							2009-07-27 21:22:30 +00:00  
				
					
						
							
							
								 
						
							
								f782ebc0cb 
								
							 
						 
						
							
							
								
								We decided to not worry about Atoms for now, it should be straightforward to  
							
							... 
							
							
							
							reintroduce them later.
Also, don't require MCSection* when creating a symbol.
llvm-svn: 74081 
							
						 
						
							2009-06-24 17:00:42 +00:00  
				
					
						
							
							
								 
						
							
								3f5738d599 
								
							 
						 
						
							
							
								
								add trivial support for passing label definitions through the MCStreamer.  
							
							... 
							
							
							
							This is suboptimal in several aspects, see the commented out assertion.
I need to talk to Daniel about this.
llvm-svn: 74057 
							
						 
						
							2009-06-24 04:31:49 +00:00  
				
					
						
							
							
								 
						
							
								9faf273fc4 
								
							 
						 
						
							
							
								
								Start MCAsmStreamer implementation.  
							
							... 
							
							
							
							llvm-svn: 74044 
							
						 
						
							2009-06-24 01:03:06 +00:00  
				
					
						
							
							
								 
						
							
								badeace84a 
								
							 
						 
						
							
							
								
								Update for MCImm -> MCValue rename.  
							
							... 
							
							
							
							llvm-svn: 74024 
							
						 
						
							2009-06-23 23:39:15 +00:00  
				
					
						
							
							
								 
						
							
								ca29e4d7f4 
								
							 
						 
						
							
							
								
								Start flushing out MCContext.  
							
							... 
							
							
							
							- Lives inside new library lib/MC (LLVMMC.a)
llvm-svn: 74013 
							
						 
						
							2009-06-23 22:01:43 +00:00