Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0ab5e2cded 
								
							 
						 
						
							
							
								
								Fix a ton of comment typos found by codespell.  Patch by  
							
							 
							
							... 
							
							
							
							Luis Felipe Strano Moraes!
llvm-svn: 129558 
							
						 
						
							2011-04-15 05:18:47 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e141234940 
								
							 
						 
						
							
							
								
								Remove extra bytes that were added for gdb.  We do not have good poiner to understand actual reason behind this fixme. Spot checking suggest that newer gdb does not need this.  
							
							 
							
							... 
							
							
							
							llvm-svn: 129461 
							
						 
						
							2011-04-13 19:41:17 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								28dce70364 
								
							 
						 
						
							
							
								
								Simplify. There is no need to use static variable.  
							
							 
							
							... 
							
							
							
							llvm-svn: 129406 
							
						 
						
							2011-04-12 23:10:47 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f20c4f715f 
								
							 
						 
						
							
							
								
								This mechanical patch moves type handling into CompileUnit from DwarfDebug. In case of multiple compile unit in one object file, each compile unit is responsible for its own set of type entries anyway. This refactoring makes this obvious.  
							
							 
							
							... 
							
							
							
							llvm-svn: 129402 
							
						 
						
							2011-04-12 22:53:02 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								5eb4319dba 
								
							 
						 
						
							
							
								
								Refactor CompileUnit into a separate header.  
							
							 
							
							... 
							
							
							
							llvm-svn: 129367 
							
						 
						
							2011-04-12 17:40:32 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								778947c203 
								
							 
						 
						
							
							
								
								Simplify array bound checks and clarify comments.  One element array can have same non-zero number as lower bound as well as upper bound.  
							
							 
							
							... 
							
							
							
							llvm-svn: 129170 
							
						 
						
							2011-04-08 23:39:38 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e39647951b 
								
							 
						 
						
							
							
								
								Do not emit DW_AT_upper_bound and DW_AT_lower_bound for unbouded array.  
							
							 
							
							... 
							
							
							
							If lower bound is more then upper bound then consider it is an unbounded array.
An array is unbounded if non-zero lower bound is same as upper bound.
If lower bound and upper bound are zero than array has one element.
llvm-svn: 129156 
							
						 
						
							2011-04-08 21:55:10 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								9f738849ab 
								
							 
						 
						
							
							
								
								Add support to encode function's template parameters.  
							
							 
							
							... 
							
							
							
							llvm-svn: 128947 
							
						 
						
							2011-04-05 22:52:06 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d4e20eacf0 
								
							 
						 
						
							
							
								
								Refactor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 128929 
							
						 
						
							2011-04-05 21:08:24 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								651d06e036 
								
							 
						 
						
							
							
								
								Do not emit empty name.  
							
							 
							
							... 
							
							
							
							llvm-svn: 128914 
							
						 
						
							2011-04-05 20:14:13 +00:00  
						
					 
				
					
						
							
							
								 
								Jakob Stoklund Olesen
							
						 
						
							 
							
							
							
							
								
							
							
								9a624fa993 
								
							 
						 
						
							
							
								
								Collect and coalesce DBG_VALUE instructions before emitting the function.  
							
							 
							
							... 
							
							
							
							Correctly terminate the range of register DBG_VALUEs when the register is
clobbered or when the basic block ends.
The code is now ready to deal with variables that are sometimes in a register
and sometimes on the stack. We just need to teach emitDebugLoc to say 'stack
slot'.
llvm-svn: 128327 
							
						 
						
							2011-03-26 02:19:36 +00:00  
						
					 
				
					
						
							
							
								 
								Jakob Stoklund Olesen
							
						 
						
							 
							
							
							
							
								
							
							
								1886a4c823 
								
							 
						 
						
							
							
								
								Emit less labels for debug info and stop emitting .loc directives for DBG_VALUEs.  
							
							 
							
							... 
							
							
							
							The .dot directives don't need labels, that is a leftover from when we created
line number info manually.
Instructions following a DBG_VALUE can share its label since the DBG_VALUE
doesn't produce any code.
llvm-svn: 128284 
							
						 
						
							2011-03-25 17:20:59 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e01b75cb89 
								
							 
						 
						
							
							
								
								Keep track of directory namd and fIx regression caused by Rafael's patch r119613.  
							
							 
							
							... 
							
							
							
							A better approach would be to move source id handling inside MC.
llvm-svn: 128233 
							
						 
						
							2011-03-24 20:30:50 +00:00  
						
					 
				
					
						
							
							
								 
								Jakob Stoklund Olesen
							
						 
						
							 
							
							
							
							
								
							
							
								a87d80cdca 
								
							 
						 
						
							
							
								
								Don't coalesce identical DBG_VALUE instructions prematurely.  
							
							 
							
							... 
							
							
							
							Each of these instructions may have a RegsClobberInsn entry that can't be
ignored. Consecutive ranges are coalesced later when DwarfDebug::emitDebugLoc
merges entries.
llvm-svn: 128155 
							
						 
						
							2011-03-23 18:37:30 +00:00  
						
					 
				
					
						
							
							
								 
								Jakob Stoklund Olesen
							
						 
						
							 
							
							
							
							
								
							
							
								ec0ac3ca40 
								
							 
						 
						
							
							
								
								Reapply r128045 and r128051 with fixes.  
							
							 
							
							... 
							
							
							
							This will extend the ranges of debug info variables in registers until they are
clobbered.
Fix 1: Don't mistake DBG_VALUE instructions referring to incoming arguments on
the stack with DBG_VALUE instructions referring to variables in the frame
pointer. This fixes the gdb test-suite failure.
Fix 2: Don't trace through copies to physical registers setting up call
arguments. These registers are call clobbered, and the source register is more
likely to be a callee-saved register that can be extended through the call
instruction.
llvm-svn: 128114 
							
						 
						
							2011-03-22 22:33:08 +00:00  
						
					 
				
					
						
							
							
								 
								Andrew Trick
							
						 
						
							 
							
							
							
							
								
							
							
								b0f98bb5e9 
								
							 
						 
						
							
							
								
								Revert r128045 and r128051, debug info enhancements.  
							
							 
							
							... 
							
							
							
							Temporarily reverting these to see if we can get llvm-objdump to link. Hopefully this is not the problem.
llvm-svn: 128097 
							
						 
						
							2011-03-22 19:18:42 +00:00  
						
					 
				
					
						
							
							
								 
								Jakob Stoklund Olesen
							
						 
						
							 
							
							
							
							
								
							
							
								c6f4af028d 
								
							 
						 
						
							
							
								
								Clear map after use.  
							
							 
							
							... 
							
							
							
							This is likely to fix the segfault in llvm-gcc-x86_64-darwin10-cross-mingw32.
llvm-svn: 128051 
							
						 
						
							2011-03-22 01:03:24 +00:00  
						
					 
				
					
						
							
							
								 
								Jakob Stoklund Olesen
							
						 
						
							 
							
							
							
							
								
							
							
								9c057ee440 
								
							 
						 
						
							
							
								
								Dont emit 'DBG_VALUE %noreg, ...' to terminate user variable ranges.  
							
							 
							
							... 
							
							
							
							These ranges get completely jumbled by the post-ra scheduler, and it is not
really reasonable to expect it to make sense of them.
Instead, teach DwarfDebug to notice when user variables in registers are
clobbered, and terminate the ranges there.
llvm-svn: 128045 
							
						 
						
							2011-03-22 00:21:41 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								fd95b016fb 
								
							 
						 
						
							
							
								
								Revert r127757, "Patch to a fix dwarf relocation problem on ARM. One-line fix  
							
							 
							
							... 
							
							
							
							plus the test where it used to break.", which broke Clang self-host of a
Debug+Asserts compiler, on OS X.
llvm-svn: 127763 
							
						 
						
							2011-03-16 22:16:39 +00:00  
						
					 
				
					
						
							
							
								 
								Renato Golin
							
						 
						
							 
							
							
							
							
								
							
							
								a3aeafeb35 
								
							 
						 
						
							
							
								
								Patch to a fix dwarf relocation problem on ARM. One-line fix plus the test where it used to break.  
							
							 
							
							... 
							
							
							
							llvm-svn: 127757 
							
						 
						
							2011-03-16 21:05:52 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								63b3e76370 
								
							 
						 
						
							
							
								
								Fix typo.  
							
							 
							
							... 
							
							
							
							llvm-svn: 126962 
							
						 
						
							2011-03-03 21:49:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								34a7ab400e 
								
							 
						 
						
							
							
								
								Fix thinko in previous check-in.  
							
							 
							
							... 
							
							
							
							Add comment.
llvm-svn: 126959 
							
						 
						
							2011-03-03 20:08:10 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4ab660b077 
								
							 
						 
						
							
							
								
								llvm::Function argument count is not a good indicator of how many arugments does the function have at source level. If we need more space, just resize vector conservatively. This vector is only used once per function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 126957 
							
						 
						
							2011-03-03 20:02:02 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6c622ef1bc 
								
							 
						 
						
							
							
								
								If argument numbering is encoded in metadata then emit arguments' debug info in that order.  
							
							 
							
							... 
							
							
							
							llvm-svn: 126794 
							
						 
						
							2011-03-01 22:58:55 +00:00  
						
					 
				
					
						
							
							
								 
								Cameron Zwarich
							
						 
						
							 
							
							
							
							
								
							
							
								fcf51fd298 
								
							 
						 
						
							
							
								
								Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.  
							
							 
							
							... 
							
							
							
							llvm-svn: 126488 
							
						 
						
							2011-02-25 16:30:32 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b037383a35 
								
							 
						 
						
							
							
								
								Enable DebugInfo support for COFF object files.  
							
							 
							
							... 
							
							
							
							Patch by Nathan Jeffords!
llvm-svn: 126425 
							
						 
						
							2011-02-24 21:04:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a5d93247c2 
								
							 
						 
						
							
							
								
								Do not use DIFactory.  
							
							 
							
							... 
							
							
							
							llvm-svn: 126397 
							
						 
						
							2011-02-24 18:49:30 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								7b0f796c55 
								
							 
						 
						
							
							
								
								Use DW_FORM_data2 for DW_AT_language and let users use DW_LANG_lo_user=0x8000 to DW_LANG_hi_user=0xffff range.  
							
							 
							
							... 
							
							
							
							llvm-svn: 126339 
							
						 
						
							2011-02-23 22:37:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								5f1b4cdda1 
								
							 
						 
						
							
							
								
								Do not emit empty DW_TAG_lexical_block DIEs.  In one test case, size of debug info reduced by almost 7%.  
							
							 
							
							... 
							
							
							
							llvm-svn: 126009 
							
						 
						
							2011-02-19 01:31:27 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d12c0a2764 
								
							 
						 
						
							
							
								
								Ignore DBG_VALUE machine instructions while constructing instruction ranges based on location info.  
							
							 
							
							... 
							
							
							
							Machine instruction range consisting of only DBG_VALUE MIs only contributes consecutive labels in assembly output, which is harmless, and empty scope entry in DebugInfo, which confuses debugger tools.
llvm-svn: 125577 
							
						 
						
							2011-02-15 17:56:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								116a9d7c38 
								
							 
						 
						
							
							
								
								Merge .debug_loc entries whenever possible to reduce debug_loc size.  
							
							 
							
							... 
							
							
							
							llvm-svn: 124904 
							
						 
						
							2011-02-04 22:57:18 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								be933b470a 
								
							 
						 
						
							
							
								
								Add support to describe template value parameter in debug info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 124755 
							
						 
						
							2011-02-02 22:35:53 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3a9e65efb6 
								
							 
						 
						
							
							
								
								Add support to describe template parameter type in debug info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 124752 
							
						 
						
							2011-02-02 21:38:25 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2d9e532a3a 
								
							 
						 
						
							
							
								
								Fix debug info for merged global.  
							
							 
							
							... 
							
							
							
							llvm-svn: 123862 
							
						 
						
							2011-01-20 00:02:16 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8698f09dbd 
								
							 
						 
						
							
							
								
								Fix register address expression. Patch by Ken Dyck.  
							
							 
							
							... 
							
							
							
							llvm-svn: 123856 
							
						 
						
							2011-01-19 23:04:47 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								447cb38fbe 
								
							 
						 
						
							
							
								
								Appropriately truncate debug info range in dwarf output.  
							
							 
							
							... 
							
							
							
							This is not yet completely enabled.
llvm-svn: 123274 
							
						 
						
							2011-01-11 21:42:10 +00:00  
						
					 
				
					
						
							
							
								 
								Anton Korobeynikov
							
						 
						
							 
							
							
							
							
								
							
							
								2f93128109 
								
							 
						 
						
							
							
								
								Rename TargetFrameInfo into TargetFrameLowering. Also, put couple of FIXMEs and fixes here and there.  
							
							 
							
							... 
							
							
							
							llvm-svn: 123170 
							
						 
						
							2011-01-10 12:39:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								acbee0b0d9 
								
							 
						 
						
							
							
								
								Speculatively revert r123032.  
							
							 
							
							... 
							
							
							
							llvm-svn: 123039 
							
						 
						
							2011-01-07 22:33:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6381e1584c 
								
							 
						 
						
							
							
								
								Appropriately truncate debug info range in dwarf output.  
							
							 
							
							... 
							
							
							
							Enable live debug variables pass.
llvm-svn: 123032 
							
						 
						
							2011-01-07 21:30:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								70eb982843 
								
							 
						 
						
							
							
								
								Emit 128 bit constant.  
							
							 
							
							... 
							
							
							
							This fixes PR 8913 crash.
llvm-svn: 122971 
							
						 
						
							2011-01-06 21:39:25 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c26da9005b 
								
							 
						 
						
							
							
								
								DW_FORM_data1 may not provide sufficient room for vtable index, use _udata instead.  
							
							 
							
							... 
							
							
							
							This fixes radar 8730409.
llvm-svn: 121323 
							
						 
						
							2010-12-09 00:10:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								bca5b25721 
								
							 
						 
						
							
							
								
								Undefined value in reg 0 may need a marker to identify end of source range.  
							
							 
							
							... 
							
							
							
							This will be used to truncate live range of DBG_VALUE instruction by register allocator and friends.
llvm-svn: 121061 
							
						 
						
							2010-12-06 22:48:22 +00:00  
						
					 
				
					
						
							
							
								 
								Michael J. Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								447762da85 
								
							 
						 
						
							
							
								
								Merge System into Support.  
							
							 
							
							... 
							
							
							
							llvm-svn: 120298 
							
						 
						
							2010-11-29 18:16:10 +00:00  
						
					 
				
					
						
							
							
								 
								Anton Korobeynikov
							
						 
						
							 
							
							
							
							
								
							
							
								4687778398 
								
							 
						 
						
							
							
								
								Move some more hooks to TargetFrameInfo  
							
							 
							
							... 
							
							
							
							llvm-svn: 119904 
							
						 
						
							2010-11-20 15:59:32 +00:00  
						
					 
				
					
						
							
							
								 
								Anton Korobeynikov
							
						 
						
							 
							
							
							
							
								
							
							
								14ee344944 
								
							 
						 
						
							
							
								
								Move getInitialFrameState() to TargetFrameInfo  
							
							 
							
							... 
							
							
							
							llvm-svn: 119754 
							
						 
						
							2010-11-18 23:25:52 +00:00  
						
					 
				
					
						
							
							
								 
								Rafael Espindola
							
						 
						
							 
							
							
							
							
								
							
							
								67c6ab8865 
								
							 
						 
						
							
							
								
								Change CodeGen to use .loc directives. This produces a lot more readable output  
							
							 
							
							... 
							
							
							
							and testing is easier.  A good example is the unknown-location.ll test that
now can just look for ".loc 1 0 0".  We also don't use a DW_LNE_set_address for
every address change anymore.
llvm-svn: 119613 
							
						 
						
							2010-11-18 02:04:25 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								53a40df6ea 
								
							 
						 
						
							
							
								
								Remove DW_AT_start_scope support. It is incomplete and superseeded by location entries support.  
							
							 
							
							... 
							
							
							
							llvm-svn: 118940 
							
						 
						
							2010-11-12 23:20:42 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								364bf04267 
								
							 
						 
						
							
							
								
								Take care of special characters while creating named MDNode name to hold function specific local variable's info.  
							
							 
							
							... 
							
							
							
							This fixes radar 8653152. I am checking in testcase as a separate check-in.
llvm-svn: 118726 
							
						 
						
							2010-11-10 22:19:21 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e755966913 
								
							 
						 
						
							
							
								
								Simplify.  
							
							 
							
							... 
							
							
							
							llvm-svn: 118027 
							
						 
						
							2010-11-02 17:37:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6e0d58968d 
								
							 
						 
						
							
							
								
								Ignore empty blocks.  
							
							 
							
							... 
							
							
							
							llvm-svn: 117615 
							
						 
						
							2010-10-28 22:11:59 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1c75865037 
								
							 
						 
						
							
							
								
								Do not work too hard to find type's file info. There is a special field to record file info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 117588 
							
						 
						
							2010-10-28 19:50:08 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c4b69051b7 
								
							 
						 
						
							
							
								
								Technically DIFile scope should also be handled here.  
							
							 
							
							... 
							
							
							
							llvm-svn: 117563 
							
						 
						
							2010-10-28 17:30:52 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b5694e702c 
								
							 
						 
						
							
							
								
								s/beginScope/beginInstruction/g  
							
							 
							
							... 
							
							
							
							s/endScope/endInstruction/g
llvm-svn: 117376 
							
						 
						
							2010-10-26 17:49:02 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								90b2ac2696 
								
							 
						 
						
							
							
								
								For statistics that are only used in functions declared in !NDEBUG, wrap the  
							
							 
							
							... 
							
							
							
							declarations in !NDEBUG to avoid -Wunused-variable warnings. Patch by
Matt Beaumont-Gay!
llvm-svn: 117345 
							
						 
						
							2010-10-26 00:51:57 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a86114b961 
								
							 
						 
						
							
							
								
								Add simple counter to count no. of basic blocks without any line number information. At -O0, these basic block coule cause less than optimial debugging experience.  
							
							 
							
							... 
							
							
							
							llvm-svn: 117307 
							
						 
						
							2010-10-25 20:45:32 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								dd1c289a6a 
								
							 
						 
						
							
							
								
								Line number 0 indicates there is no source line/file name info available for this construct.  
							
							 
							
							... 
							
							
							
							llvm-svn: 116061 
							
						 
						
							2010-10-08 17:18:54 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3a24f9230a 
								
							 
						 
						
							
							
								
								Provie a clearner interface so that FE can decide whether a function has prototype or not.  
							
							 
							
							... 
							
							
							
							llvm-svn: 115988 
							
						 
						
							2010-10-07 22:03:01 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								9a33ec24eb 
								
							 
						 
						
							
							
								
								Add support for DW_TAG_unspecified_parameters.  
							
							 
							
							... 
							
							
							
							llvm-svn: 115833 
							
						 
						
							2010-10-06 20:50:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e1c714647c 
								
							 
						 
						
							
							
								
								Add support to let FE mark explict methods as explict in debug info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 115378 
							
						 
						
							2010-10-01 23:31:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								bea08d1c85 
								
							 
						 
						
							
							
								
								Let FE mark a variable as artificial variable.  
							
							 
							
							... 
							
							
							
							llvm-svn: 115102 
							
						 
						
							2010-09-29 23:07:21 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cb03b14089 
								
							 
						 
						
							
							
								
								Add support to let FE encode method access specifier.  
							
							 
							
							... 
							
							
							
							llvm-svn: 115089 
							
						 
						
							2010-09-29 21:44:16 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a1bd5a1fad 
								
							 
						 
						
							
							
								
								Assign DW_ACCESS_public accessibility attribute to members by default.  
							
							 
							
							... 
							
							
							
							llvm-svn: 115067 
							
						 
						
							2010-09-29 19:08:08 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								7a55481fa4 
								
							 
						 
						
							
							
								
								Provide an interface to let FEs anchor debug info for types.  
							
							 
							
							... 
							
							
							
							llvm-svn: 114969 
							
						 
						
							2010-09-28 18:08:20 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								185051cb8e 
								
							 
						 
						
							
							
								
								Remove dead argument.  
							
							 
							
							... 
							
							
							
							llvm-svn: 114920 
							
						 
						
							2010-09-27 23:15:27 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								804fcd4794 
								
							 
						 
						
							
							
								
								Use DW_OP_fbreg when offset is based on frame register.  
							
							 
							
							... 
							
							
							
							llvm-svn: 114585 
							
						 
						
							2010-09-22 21:10:38 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								871d0b1b1c 
								
							 
						 
						
							
							
								
								If FE forgot to provide a file name (usually it uses "stdin" as name in such situation) then make one up to ensure that debug info is not malformed.  
							
							 
							
							... 
							
							
							
							llvm-svn: 114119 
							
						 
						
							2010-09-16 20:57:49 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								da3ef85460 
								
							 
						 
						
							
							
								
								Fix .debug_range for linux. Patch by Krister Wombell.  
							
							 
							
							... 
							
							
							
							llvm-svn: 112830 
							
						 
						
							2010-09-02 16:43:44 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ea63639da5 
								
							 
						 
						
							
							
								
								Use absolute label for DW_AT_stmt_list if a target does not prefer offset here.  
							
							 
							
							... 
							
							
							
							This patch was developed on top of original patch by Artur Pietrek.
llvm-svn: 112678 
							
						 
						
							2010-08-31 23:50:19 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								86ec8b3a3f 
								
							 
						 
						
							
							
								
								Reapply r112623. Included additional check for unused byval argument.  
							
							 
							
							... 
							
							
							
							llvm-svn: 112659 
							
						 
						
							2010-08-31 22:22:42 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								529f248eb4 
								
							 
						 
						
							
							
								
								Revert r112623. It is causing self host build failures.  
							
							 
							
							... 
							
							
							
							llvm-svn: 112631 
							
						 
						
							2010-08-31 19:41:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8559932d36 
								
							 
						 
						
							
							
								
								Remember byval argument's frame index during argument lowering and use this info to emit debug info.  
							
							 
							
							... 
							
							
							
							Fixes Radar 8367011.
llvm-svn: 112623 
							
						 
						
							2010-08-31 18:50:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2cfc3af181 
								
							 
						 
						
							
							
								
								Simplify.  
							
							 
							
							... 
							
							
							
							llvm-svn: 112583 
							
						 
						
							2010-08-31 06:11:28 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4a213870db 
								
							 
						 
						
							
							
								
								Revert r107202. It is not adding any value.  
							
							 
							
							... 
							
							
							
							llvm-svn: 111870 
							
						 
						
							2010-08-24 00:06:12 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a8652674e0 
								
							 
						 
						
							
							
								
								Handle qualified constants that are directly folded by FE.  
							
							 
							
							... 
							
							
							
							PR 7920.
llvm-svn: 111820 
							
						 
						
							2010-08-23 18:25:56 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8e06a5eb47 
								
							 
						 
						
							
							
								
								Do not forget debug info for enums. Use named mdnode to keep track of these types.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110712 
							
						 
						
							2010-08-10 20:01:20 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b219746c80 
								
							 
						 
						
							
							
								
								Handle TAG_constant for integers.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110656 
							
						 
						
							2010-08-10 07:11:13 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								18ba0b4ac3 
								
							 
						 
						
							
							
								
								Simplify.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110653 
							
						 
						
							2010-08-10 04:12:17 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b1e07b3f2a 
								
							 
						 
						
							
							
								
								Drop "const". It does not add value here.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110652 
							
						 
						
							2010-08-10 04:09:06 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								469c12d254 
								
							 
						 
						
							
							
								
								Do not include file static variable in pubnames list.  
							
							 
							
							... 
							
							
							
							Refactor and simplify code to avoid redundant checks.
llvm-svn: 110642 
							
						 
						
							2010-08-10 01:37:23 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								394a69ed52 
								
							 
						 
						
							
							
								
								Undo accidental commit.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110623 
							
						 
						
							2010-08-09 23:28:52 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4eda9abddb 
								
							 
						 
						
							
							
								
								Simplify. Avoid redundant checks.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110621 
							
						 
						
							2010-08-09 23:26:06 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c7cf14f5f6 
								
							 
						 
						
							
							
								
								Refactor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110607 
							
						 
						
							2010-08-09 21:39:24 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6d9f9feb2b 
								
							 
						 
						
							
							
								
								Refactoring. Update DbgVarible to handle queries itself.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110600 
							
						 
						
							2010-08-09 21:01:39 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b6511a36b4 
								
							 
						 
						
							
							
								
								It is ok, and convenient, to pass descriptors by value.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110590 
							
						 
						
							2010-08-09 20:20:05 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								406798a17d 
								
							 
						 
						
							
							
								
								Rename a method.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110586 
							
						 
						
							2010-08-09 18:51:29 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6c378ac473 
								
							 
						 
						
							
							
								
								Use location entry only of the location described by DBG_VALUE is valid.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110255 
							
						 
						
							2010-08-04 22:07:27 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6d21f61b3f 
								
							 
						 
						
							
							
								
								Fix typo in comment.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110244 
							
						 
						
							2010-08-04 20:32:36 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0e60e67efb 
								
							 
						 
						
							
							
								
								If a variable is spilled by code generator then use DW_OP_fbreg to describe its location on stack.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110234 
							
						 
						
							2010-08-04 18:40:52 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d070128de5 
								
							 
						 
						
							
							
								
								Free DbgScope created for dead functions.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110045 
							
						 
						
							2010-08-02 17:32:15 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								84a74779a1 
								
							 
						 
						
							
							
								
								It is FE's responsibility to emit proper directory name.  
							
							 
							
							... 
							
							
							
							llvm-svn: 109538 
							
						 
						
							2010-07-27 20:51:15 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								498877d055 
								
							 
						 
						
							
							
								
								Use current working directory when Dirname is empty. This only happens when absolute source file path is used on compiler command line.  
							
							 
							
							... 
							
							
							
							llvm-svn: 109302 
							
						 
						
							2010-07-24 00:53:22 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								28499f76c9 
								
							 
						 
						
							
							
								
								Revert r109262.  
							
							 
							
							... 
							
							
							
							llvm-svn: 109285 
							
						 
						
							2010-07-23 23:04:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3032354bbe 
								
							 
						 
						
							
							
								
								IF directory name is empty then try to extract one using absolute file name.  
							
							 
							
							... 
							
							
							
							llvm-svn: 109262 
							
						 
						
							2010-07-23 20:36:13 +00:00  
						
					 
				
					
						
							
							
								 
								Jim Grosbach
							
						 
						
							 
							
							
							
							
								
							
							
								965a73a28c 
								
							 
						 
						
							
							
								
								For ARM/Darwin, add a dwarf entry indicating whether a function is arm or thumb  
							
							 
							
							... 
							
							
							
							rdar://8202967
llvm-svn: 109057 
							
						 
						
							2010-07-21 23:03:52 +00:00  
						
					 
				
					
						
							
							
								 
								Jim Grosbach
							
						 
						
							 
							
							
							
							
								
							
							
								a8683bb033 
								
							 
						 
						
							
							
								
								80 column and trailing whitespace cleanup  
							
							 
							
							... 
							
							
							
							llvm-svn: 109037 
							
						 
						
							2010-07-21 21:21:52 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								093cb79d4b 
								
							 
						 
						
							
							
								
								Disallow null as a named metadata operand.  
							
							 
							
							... 
							
							
							
							Make MDNode::destroy private.
Fix the one thing that used MDNode::destroy, outside of MDNode itself.
One should never delete or destroy an MDNode explicitly. MDNodes
implicitly go away when there are no references to them (implementation
details aside).
llvm-svn: 109028 
							
						 
						
							2010-07-21 18:54:18 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								61475c5c3c 
								
							 
						 
						
							
							
								
								Correct line info for declarations/definitions.  Radar 8063111.  
							
							 
							
							... 
							
							
							
							llvm-svn: 108784 
							
						 
						
							2010-07-19 23:56:30 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								18efced1a2 
								
							 
						 
						
							
							
								
								Fix PR 7662.  
							
							 
							
							... 
							
							
							
							Do not try to insert local variable info to a DIE used for function declaration.
llvm-svn: 108731 
							
						 
						
							2010-07-19 17:53:55 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								d08fb75aaa 
								
							 
						 
						
							
							
								
								Reverting r107918 and r107919.  Radar 8063111.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107930 
							
						 
						
							2010-07-08 23:25:39 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4c6bd6612f 
								
							 
						 
						
							
							
								
								Relax assertion. In optimized code, it is possible that first instruction is coming from a inlined function.  
							
							 
							
							... 
							
							
							
							This fixes PR7596 .
llvm-svn: 107923 
							
						 
						
							2010-07-08 22:39:20 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								43d226deea 
								
							 
						 
						
							
							
								
								Fix decl/def debug info for template functions.  Radar 8063111.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107919 
							
						 
						
							2010-07-08 22:28:59 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								9c160e1213 
								
							 
						 
						
							
							
								
								Reuse DIEInteger for 1. This is frequently used while emitting an attribute using dwarf::DW_FORM_flag form.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107903 
							
						 
						
							2010-07-08 20:10:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a37a95ea2f 
								
							 
						 
						
							
							
								
								One MDNode may be used to create regular DIE as well as abstract DIE.  
							
							 
							
							... 
							
							
							
							Keep track of abstract subprogram DIEs. 
llvm-svn: 107822 
							
						 
						
							2010-07-07 22:20:57 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								9a0339fc1f 
								
							 
						 
						
							
							
								
								Rename couple of maps.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107810 
							
						 
						
							2010-07-07 20:49:57 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								30265c4f8b 
								
							 
						 
						
							
							
								
								80 cols.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107807 
							
						 
						
							2010-07-07 20:12:52 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								429397529a 
								
							 
						 
						
							
							
								
								Do not require line number entry for undefined local variable.  
							
							 
							
							... 
							
							
							
							This is a regression caused by r106792 and caught by gdb testsuite.
llvm-svn: 107430 
							
						 
						
							2010-07-01 21:38:08 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c5b3109bec 
								
							 
						 
						
							
							
								
								Do not construct DIE for already processed MDNode.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107237 
							
						 
						
							2010-06-30 01:40:11 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								648df7bf64 
								
							 
						 
						
							
							
								
								Add variables into a scope before constructing scope DIE otherwise variables won't be included DIE tree.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107228 
							
						 
						
							2010-06-30 00:11:08 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								24bc1b5b2f 
								
							 
						 
						
							
							
								
								Do not hardcode DW_AT_stmt_list value.  
							
							 
							
							... 
							
							
							
							Inspired by Artur Pietrek.
llvm-svn: 107202 
							
						 
						
							2010-06-29 20:17:53 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1de21ec498 
								
							 
						 
						
							
							
								
								Use DW_FORM_addr for DW_AT_entry_pc.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107085 
							
						 
						
							2010-06-28 22:22:47 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d10b2af260 
								
							 
						 
						
							
							
								
								Include inlined function in list of processed subprograms.  
							
							 
							
							... 
							
							
							
							llvm-svn: 107065 
							
						 
						
							2010-06-28 20:53:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f3b2db68c6 
								
							 
						 
						
							
							
								
								Preserve deleted function's local variables' debug info.  
							
							 
							
							... 
							
							
							
							Radar 8122864.
llvm-svn: 107027 
							
						 
						
							2010-06-28 18:25:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								fb6f22f010 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 106990 
							
						 
						
							2010-06-28 05:59:13 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								5c0f85c7dd 
								
							 
						 
						
							
							
								
								Collect debug info for optimized variables of inlined functions.  
							
							 
							
							... 
							
							
							
							llvm-svn: 106895 
							
						 
						
							2010-06-25 22:07:34 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c657c621b7 
								
							 
						 
						
							
							
								
								DBG_VALUE machine instruction pointing to undefined register for a variable justify a separate scope if the variable is inlined function's argument.  
							
							 
							
							... 
							
							
							
							Radar 8122864.
llvm-svn: 106792 
							
						 
						
							2010-06-24 21:51:19 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b6e058da18 
								
							 
						 
						
							
							
								
								Use single interface, using twine, to get named metadata.  
							
							 
							
							... 
							
							
							
							getNamedMetadata().
llvm-svn: 106518 
							
						 
						
							2010-06-22 01:19:38 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cbc6fd8493 
								
							 
						 
						
							
							
								
								Discard special LLVM prefix from linkage name.  
							
							 
							
							... 
							
							
							
							llvm-svn: 106516 
							
						 
						
							2010-06-22 01:06:05 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ad51735794 
								
							 
						 
						
							
							
								
								Do not rely on Twine temporaries to survive.  
							
							 
							
							... 
							
							
							
							llvm-svn: 106515 
							
						 
						
							2010-06-22 01:01:58 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								6e681a5fbe 
								
							 
						 
						
							
							
								
								Give NamedRegionTimer an Enabled flag, allowing all its clients to  
							
							 
							
							... 
							
							
							
							switch from this:
  if (TimePassesIsEnabled) {
    NamedRegionTimer T(Name, GroupName);
    do_something();
  } else {
    do_something(); // duplicate the code, this time without a timer!
  }
to this:
  {
    NamedRegionTimer T(Name, GroupName, TimePassesIsEnabled);
    do_something();
  }
llvm-svn: 106285 
							
						 
						
							2010-06-18 15:56:31 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a6d20f446f 
								
							 
						 
						
							
							
								
								Use separate named MDNode to hold each function's local variable info.  
							
							 
							
							... 
							
							
							
							This speeds up local variable handling in DwarfDebug.
llvm-svn: 106075 
							
						 
						
							2010-06-16 00:53:55 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								9b5005cd4b 
								
							 
						 
						
							
							
								
								Added a comment.  
							
							 
							
							... 
							
							
							
							llvm-svn: 106063 
							
						 
						
							2010-06-15 23:06:30 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								afe54f1625 
								
							 
						 
						
							
							
								
								Support for nested functions/classes in debug output.  (Again.)  Radar 7424645.  
							
							 
							
							... 
							
							
							
							llvm-svn: 105828 
							
						 
						
							2010-06-11 20:08:44 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								3ca391027f 
								
							 
						 
						
							
							
								
								Revert 105492 & 105493 due to a testcase regression.  Radar 7424645.  
							
							 
							
							... 
							
							
							
							llvm-svn: 105511 
							
						 
						
							2010-06-05 00:39:29 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								7c015988fe 
								
							 
						 
						
							
							
								
								Support for nested functions/classes in debug output.  Radar 7424645.  
							
							 
							
							... 
							
							
							
							llvm-svn: 105492 
							
						 
						
							2010-06-04 22:36:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c2254f6b98 
								
							 
						 
						
							
							
								
								Skip identical instruction while calculating DBG_VALUE range.  
							
							 
							
							... 
							
							
							
							llvm-svn: 105340 
							
						 
						
							2010-06-02 19:05:13 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								21ccf05b4c 
								
							 
						 
						
							
							
								
								Use local small vector.  
							
							 
							
							... 
							
							
							
							llvm-svn: 105332 
							
						 
						
							2010-06-02 16:42:51 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d43e0ca916 
								
							 
						 
						
							
							
								
								Ignore line number of debug value in undefined register.  
							
							 
							
							... 
							
							
							
							llvm-svn: 105292 
							
						 
						
							2010-06-01 21:43:09 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								c1e216583f 
								
							 
						 
						
							
							
								
								Revert 104841, 104842, 104876 due to buildbot failures.  Radar 7424645.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104953 
							
						 
						
							2010-05-28 16:41:07 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								7a9dedf0ab 
								
							 
						 
						
							
							
								
								Do not drop location info for inlined function args.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104884 
							
						 
						
							2010-05-27 20:25:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								5e6b71ce34 
								
							 
						 
						
							
							
								
								inlined function's arguments need a label to mark the start point because they are not directly attached to current function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104848 
							
						 
						
							2010-05-27 16:47:30 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								8e99e50d08 
								
							 
						 
						
							
							
								
								Support for nested functions/classes in debug output.  Radar 7424645.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104841 
							
						 
						
							2010-05-27 16:16:54 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6b9a9fe207 
								
							 
						 
						
							
							
								
								Simplify. Eliminate unneeded debug_loc entry.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104785 
							
						 
						
							2010-05-26 23:55:23 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								acc32a5c19 
								
							 
						 
						
							
							
								
								There is no need to force an line number entry (using previous location) for a temp label at unknown location.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104740 
							
						 
						
							2010-05-26 21:23:46 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								002d54ddc9 
								
							 
						 
						
							
							
								
								Identify instructions, that needs a label to mark debug info entity, in advance. This simplifies beginScope().  
							
							 
							
							... 
							
							
							
							llvm-svn: 104720 
							
						 
						
							2010-05-26 19:37:24 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								95fcc96752 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104706 
							
						 
						
							2010-05-26 17:42:50 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								5a5e0bc3b5 
								
							 
						 
						
							
							
								
								Do not construct location list backword!  
							
							 
							
							... 
							
							
							
							llvm-svn: 104705 
							
						 
						
							2010-05-26 17:29:32 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								9fc11706e3 
								
							 
						 
						
							
							
								
								First cut at supporting .debug_loc section.  
							
							 
							
							... 
							
							
							
							This is used to track variable information.
llvm-svn: 104649 
							
						 
						
							2010-05-25 23:40:22 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								51b37e0bd8 
								
							 
						 
						
							
							
								
								Do not emit line number entries for unknown debug values.  
							
							 
							
							... 
							
							
							
							This fixes recent regression in store.exp from gdb testsuite.
llvm-svn: 104524 
							
						 
						
							2010-05-24 18:26:49 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4a8e6e83dc 
								
							 
						 
						
							
							
								
								Collect variable information during endFunction() instead of beginFunction().  
							
							 
							
							... 
							
							
							
							llvm-svn: 104412 
							
						 
						
							2010-05-22 00:04:14 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1782aae355 
								
							 
						 
						
							
							
								
								Simplify  
							
							 
							
							... 
							
							
							
							llvm-svn: 104338 
							
						 
						
							2010-05-21 18:49:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								fbd6c45e06 
								
							 
						 
						
							
							
								
								Simplify.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104302 
							
						 
						
							2010-05-21 00:10:20 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								490c8ab76d 
								
							 
						 
						
							
							
								
								Refactor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104265 
							
						 
						
							2010-05-20 19:57:06 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e1c53f29d3 
								
							 
						 
						
							
							
								
								Split DbgVariable. Eventually, variable info will be communicated through frame index, or DBG_VALUE instruction, or collection of DBG_VALUE instructions. Plus each DbgVariable may not need a label.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104233 
							
						 
						
							2010-05-20 16:36:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a08130864e 
								
							 
						 
						
							
							
								
								Revert r104165.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104172 
							
						 
						
							2010-05-19 21:58:28 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0fe341e2e2 
								
							 
						 
						
							
							
								
								There is no need to maintain InsnsBeginScopeSet separately.  
							
							 
							
							... 
							
							
							
							llvm-svn: 104165 
							
						 
						
							2010-05-19 21:26:53 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								36debf8046 
								
							 
						 
						
							
							
								
								Do not forget to mark prcessed arguments.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103822 
							
						 
						
							2010-05-14 21:55:50 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e0a94bfe9f 
								
							 
						 
						
							
							
								
								Add support to preserve type info for the variables that are removed by the optimizer.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103798 
							
						 
						
							2010-05-14 21:01:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1a0df9a80e 
								
							 
						 
						
							
							
								
								Enable multiple Compile Units in one module.  
							
							 
							
							... 
							
							
							
							This means now 'llvm-ld a.bc b.bc' will preserve debug info appropriately.
llvm-svn: 103439 
							
						 
						
							2010-05-10 22:49:55 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0625af2a88 
								
							 
						 
						
							
							
								
								Instead of just verifying compile unit, verify entire type, variable, namespace etc..  
							
							 
							
							... 
							
							
							
							llvm-svn: 103327 
							
						 
						
							2010-05-07 23:33:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cbe7a8508a 
								
							 
						 
						
							
							
								
								Remove DIGlobal.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103325 
							
						 
						
							2010-05-07 23:19:07 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8d6a2b7428 
								
							 
						 
						
							
							
								
								Verify entire type descriptor not just tag.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103303 
							
						 
						
							2010-05-07 21:45:47 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								32cc43c242 
								
							 
						 
						
							
							
								
								Wrap const MDNode * inside DIDescriptor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103295 
							
						 
						
							2010-05-07 20:54:48 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cfa8e9d45f 
								
							 
						 
						
							
							
								
								Avoid DIDescriptor::getNode(). Use overloaded operators instead.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103272 
							
						 
						
							2010-05-07 18:11:54 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								7421ae48bf 
								
							 
						 
						
							
							
								
								Disable the new unknown-location code for now. It causes a major  
							
							 
							
							... 
							
							
							
							increase in the debug line info section, and it's causing
regressions in a gdb testsuite.
llvm-svn: 103226 
							
						 
						
							2010-05-07 01:08:53 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								47d04e3e41 
								
							 
						 
						
							
							
								
								Update LabelsBeforeInsn also, when creating unknown-position labels.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103145 
							
						 
						
							2010-05-06 00:29:41 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								50849c63e4 
								
							 
						 
						
							
							
								
								Emit debug info for MachineInstrs with unknown debug locations, instead  
							
							 
							
							... 
							
							
							
							of just letting them inherit the debug locations of adjacent instructions.
Debug info should aim to be either accurate or absent.
llvm-svn: 103135 
							
						 
						
							2010-05-05 23:41:32 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								075e9b5d66 
								
							 
						 
						
							
							
								
								Set DW_AT_APPLE_omit_frame_ptr in endFunction() where MachineFunction is available all the time.  
							
							 
							
							... 
							
							
							
							llvm-svn: 103001 
							
						 
						
							2010-05-04 06:15:30 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b4e3b9025c 
								
							 
						 
						
							
							
								
								Attach AT_APPLE_optimized attribute to optimized function's debug info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102743 
							
						 
						
							2010-04-30 19:38:23 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								50c9431203 
								
							 
						 
						
							
							
								
								Emit debug info for byval parameters.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102486 
							
						 
						
							2010-04-28 01:39:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9e06e53fc6 
								
							 
						 
						
							
							
								
								remove some default arguments to EmitAlignment.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102482 
							
						 
						
							2010-04-28 01:05:45 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								173b2b9d05 
								
							 
						 
						
							
							
								
								Refactor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102481 
							
						 
						
							2010-04-28 01:03:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cfc76fdaf1 
								
							 
						 
						
							
							
								
								Use isReg(), isImm() and isFPImm().  
							
							 
							
							... 
							
							
							
							llvm-svn: 102470 
							
						 
						
							2010-04-27 22:04:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1f34c2727d 
								
							 
						 
						
							
							
								
								Check operand type first.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102468 
							
						 
						
							2010-04-27 21:49:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1a0bbe25e3 
								
							 
						 
						
							
							
								
								Ignore DBG_VALUE instructions that points to undef values.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102463 
							
						 
						
							2010-04-27 20:54:45 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6c74a872a8 
								
							 
						 
						
							
							
								
								Identify when a lexical scope is split in to multiple instruction ranges. Emit such ranges using DW_AT_ranges.  
							
							 
							
							... 
							
							
							
							This patch fixes bug (PR6894) introduced by previous version of this patch.
llvm-svn: 102454 
							
						 
						
							2010-04-27 19:46:33 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								bd798ce8dd 
								
							 
						 
						
							
							
								
								Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This simplifies debug range entries.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102394 
							
						 
						
							2010-04-26 22:54:28 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								e9135cb3fb 
								
							 
						 
						
							
							
								
								Revert 102135, 102129, 102127, 102106, 102104, 102102, 102012, 102004,  
							
							 
							
							... 
							
							
							
							because 102004 causes codegen to emit invalid assembly on at least
x86_64-unknown-gnu-linux.
llvm-svn: 102155 
							
						 
						
							2010-04-23 01:18:53 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ea2744f4dc 
								
							 
						 
						
							
							
								
								Adjust debug range offsets for isWeakForLinker() functions.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102127 
							
						 
						
							2010-04-22 20:52:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0fde4aeedd 
								
							 
						 
						
							
							
								
								Rename InsnAfterLabelMap and InsnBeforeLabelMap.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102106 
							
						 
						
							2010-04-22 18:43:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								53f530d44c 
								
							 
						 
						
							
							
								
								Keep track of MCSymbol used to mark beginning of a function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102104 
							
						 
						
							2010-04-22 18:39:21 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								bae14a1cab 
								
							 
						 
						
							
							
								
								At this point Start and End are not null.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102102 
							
						 
						
							2010-04-22 18:28:58 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1a6e399874 
								
							 
						 
						
							
							
								
								Add command line option to disable debug info printing in .s file. This option does not impact debug info generation and preservation through earlier compile starges.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102012 
							
						 
						
							2010-04-21 19:08:53 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0940a8085e 
								
							 
						 
						
							
							
								
								Identify when a lexical scope is split in to multiple instruction ranges. Emit such ranges using DW_AT_ranges.  
							
							 
							
							... 
							
							
							
							llvm-svn: 102004 
							
						 
						
							2010-04-21 16:32:19 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								4158a0ff6b 
								
							 
						 
						
							
							
								
								Implement -disable-non-leaf-fp-elim which disable frame pointer elimination  
							
							 
							
							... 
							
							
							
							optimization for non-leaf functions. This will be hooked up to gcc's
-momit-leaf-frame-pointer option. rdar://7886181
llvm-svn: 101984 
							
						 
						
							2010-04-21 03:18:23 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								3df671a81c 
								
							 
						 
						
							
							
								
								Remove MachineFunction's DefaultDebugLoc member, and make DwarfDebug.cpp  
							
							 
							
							... 
							
							
							
							responsible for figuring out what that's supposed to be on its own.
llvm-svn: 101844 
							
						 
						
							2010-04-20 00:37:27 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6188093cca 
								
							 
						 
						
							
							
								
								Add DW_AT_APPLE_omit_frame_ptr to encode -fomit-frame-pointer flag.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101805 
							
						 
						
							2010-04-19 19:14:02 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								88f7f6aeda 
								
							 
						 
						
							
							
								
								Use const_cast instead of a C-style cast to cast away const.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101639 
							
						 
						
							2010-04-17 16:43:55 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								12563b3495 
								
							 
						 
						
							
							
								
								Add support to emit dwarf ranges.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101575 
							
						 
						
							2010-04-16 23:33:45 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								b29cda9b3c 
								
							 
						 
						
							
							
								
								Fix a bunch of namespace polution.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101376 
							
						 
						
							2010-04-15 17:08:50 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								97bdf94da3 
								
							 
						 
						
							
							
								
								There is no need to track compile unit offsets if there is only one compile unit.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101315 
							
						 
						
							2010-04-14 23:56:24 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b7eadda495 
								
							 
						 
						
							
							
								
								Clear MachineInstr->MCSymbol maps at the end of a function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101202 
							
						 
						
							2010-04-14 01:18:28 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								12d150ea43 
								
							 
						 
						
							
							
								
								Do not include types without any definition in pubtypes list.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101171 
							
						 
						
							2010-04-13 20:35:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								541019ddec 
								
							 
						 
						
							
							
								
								Clear InsnsBeginScopeSet and InsnsEndScopeSet at the end of function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100867 
							
						 
						
							2010-04-09 16:04:20 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								359b013129 
								
							 
						 
						
							
							
								
								Rename a function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100797 
							
						 
						
							2010-04-08 18:43:56 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3ebd8931fb 
								
							 
						 
						
							
							
								
								One instruction may start (or end) multiple lexical scopes.  
							
							 
							
							... 
							
							
							
							There is no need to remember labels identifying regions marked by such instructions in each scope.
llvm-svn: 100781 
							
						 
						
							2010-04-08 16:50:29 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2abed283e5 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100771 
							
						 
						
							2010-04-08 15:48:02 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								adfd4df12c 
								
							 
						 
						
							
							
								
								Delete out of date comment.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100769 
							
						 
						
							2010-04-08 15:41:13 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f1d5a1e994 
								
							 
						 
						
							
							
								
								Refactor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100768 
							
						 
						
							2010-04-08 15:37:09 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								f2351a7a6e 
								
							 
						 
						
							
							
								
								Remove unused method.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100620 
							
						 
						
							2010-04-07 11:23:46 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								f8dba24a9b 
								
							 
						 
						
							
							
								
								Workaround the breakage in r100616 by guarding all timers with  
							
							 
							
							... 
							
							
							
							TimePassesIsEnabled. This should allow make check to pass.
llvm-svn: 100618 
							
						 
						
							2010-04-07 10:44:46 +00:00  
						
					 
				
					
						
							
							
								 
								Bill Wendling
							
						 
						
							 
							
							
							
							
								
							
							
								fcc14141c7 
								
							 
						 
						
							
							
								
								Use the "NamedGroupTimer" class to categorize DWARF emission better.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100616 
							
						 
						
							2010-04-07 09:28:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								019922d1b0 
								
							 
						 
						
							
							
								
								Do not emit specification DIE with DW_AT_specification attribute for member functions of a funcation local class. This trips gdb's partial scan of DIEs at load time. Fixes Radar 7833483.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100586 
							
						 
						
							2010-04-06 23:53:48 +00:00  
						
					 
				
					
						
							
							
								 
								John McCall
							
						 
						
							 
							
							
							
							
								
							
							
								796583eec0 
								
							 
						 
						
							
							
								
								Fix a number of clang -Wsign-compare warnings that didn't have an obvious  
							
							 
							
							... 
							
							
							
							solution.  The only reason these don't fire with gcc-4.2 is that gcc turns off
part of -Wsign-compare in C++ on accident.
llvm-svn: 100581 
							
						 
						
							2010-04-06 23:35:53 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								4bd3dd956f 
								
							 
						 
						
							
							
								
								Reverting 100530 & 100531 due to regressions in the GDB test suite.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100563 
							
						 
						
							2010-04-06 21:38:29 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								c067196984 
								
							 
						 
						
							
							
								
								Revise debug info machinery to digest nested functions and classes.  
							
							 
							
							... 
							
							
							
							A certain GDB testsuite case (local.cc) has a function nested inside a
class nested inside another function.  GCC presents the innermost
function to llvm-convert first.  Heretofore, the debug info mistakenly
placed the inner function at module scope.  This patch walks the GCC
context links and instantiates the outer class and function so the
debug info is properly nested.  Radar 7426545.
llvm-svn: 100530 
							
						 
						
							2010-04-06 17:19:32 +00:00  
						
					 
				
					
						
							
							
								 
								Bill Wendling
							
						 
						
							 
							
							
							
							
								
							
							
								30346347b3 
								
							 
						 
						
							
							
								
								Output floating point representations in DWARF format. This is done by outputing  
							
							 
							
							... 
							
							
							
							the FP encoding directly as a hex representation.
llvm-svn: 100487 
							
						 
						
							2010-04-05 22:59:21 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3f3fb970e4 
								
							 
						 
						
							
							
								
								prune #includes, realize the MMI can never be null.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100407 
							
						 
						
							2010-04-05 05:24:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f0d6bd3ef4 
								
							 
						 
						
							
							
								
								change AsmPrinter to use DwarfDebug/DwarfException directly  
							
							 
							
							... 
							
							
							
							instead of going through DwarfWriter.
llvm-svn: 100405 
							
						 
						
							2010-04-05 05:11:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f5d0636850 
								
							 
						 
						
							
							
								
								trim some spurious references to DwarfWriter.  SDIsel really doesn't  
							
							 
							
							... 
							
							
							
							need it anymore, so don't addRequire it.
llvm-svn: 100400 
							
						 
						
							2010-04-05 04:09:20 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								196dbdc160 
								
							 
						 
						
							
							
								
								eliminate DwarfDebug::shouldEmit, which is the same now as MMI::hasDebugInfo  
							
							 
							
							... 
							
							
							
							llvm-svn: 100386 
							
						 
						
							2010-04-05 03:52:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d2f5062c6d 
								
							 
						 
						
							
							
								
								fix a regression on 2009-08-17-DebugInfo.m  
							
							 
							
							... 
							
							
							
							llvm-svn: 100385 
							
						 
						
							2010-04-05 03:49:26 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7cfa70e9b3 
								
							 
						 
						
							
							
								
								fastisel doesn't need DwarfWriter, remove some tendricles.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100381 
							
						 
						
							2010-04-05 02:19:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5a00dea332 
								
							 
						 
						
							
							
								
								change SizeOf to take AsmPrinter instead of TargetData,  
							
							 
							
							... 
							
							
							
							simplifying a bunch of code.
llvm-svn: 100373 
							
						 
						
							2010-04-05 00:18:22 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3a383cb7d9 
								
							 
						 
						
							
							
								
								1) make DIE take AsmPrinter instead of DwarfPrinter.  
							
							 
							
							... 
							
							
							
							2) change DwarfDebug to not inherit from DwarfPrinter.
llvm-svn: 100372 
							
						 
						
							2010-04-05 00:13:49 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								aabc6041de 
								
							 
						 
						
							
							
								
								Move EmitFrameMoves into AsmPrinter.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100371 
							
						 
						
							2010-04-04 23:41:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								70a4fcea1e 
								
							 
						 
						
							
							
								
								now that the magic is dispelled, move EmitSectionOffset to AsmPrinter.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100368 
							
						 
						
							2010-04-04 23:25:33 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d442aa368d 
								
							 
						 
						
							
							
								
								only emit section labels if we have debug info, fixing a few  
							
							 
							
							... 
							
							
							
							regtest failures.
llvm-svn: 100366 
							
						 
						
							2010-04-04 23:17:54 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e58b547460 
								
							 
						 
						
							
							
								
								I was wrong, ocaml isn't referencing 'Ldata_begin', so remove it.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100365 
							
						 
						
							2010-04-04 23:10:38 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1fbf53b970 
								
							 
						 
						
							
							
								
								stop emitting some dead L labels.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100363 
							
						 
						
							2010-04-04 23:02:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6629ca978e 
								
							 
						 
						
							
							
								
								Store an use the symbols emitted at the start of the debug  
							
							 
							
							... 
							
							
							
							sections instead of magically rematerializing them later.
llvm-svn: 100362 
							
						 
						
							2010-04-04 22:59:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								46355d87a8 
								
							 
						 
						
							
							
								
								remove the didInitial ivar, rename emitInitial to be more  
							
							 
							
							... 
							
							
							
							descriptive, change EmitSectionOffset back to taking a
symbol instead of a string.
llvm-svn: 100361 
							
						 
						
							2010-04-04 22:33:59 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								78528f9a36 
								
							 
						 
						
							
							
								
								simplify EmitSectionOffset a little bit, improve comments.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100360 
							
						 
						
							2010-04-04 22:25:14 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								638b3e0000 
								
							 
						 
						
							
							
								
								The "IsSmall" argument to EmitSectionOffset is always true,  
							
							 
							
							... 
							
							
							
							constant fold it away.
llvm-svn: 100356 
							
						 
						
							2010-04-04 21:34:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f1429f1fe3 
								
							 
						 
						
							
							
								
								inline EmitDifference away.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100347 
							
						 
						
							2010-04-04 19:58:12 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a179b52361 
								
							 
						 
						
							
							
								
								move gettemplabel and getdwlabel to AsmPrinter and rename  
							
							 
							
							... 
							
							
							
							them for consistency.
llvm-svn: 100345 
							
						 
						
							2010-04-04 19:25:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9efd118938 
								
							 
						 
						
							
							
								
								move uleb/sleb printing into AsmPrinter from DwarfPrinter.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100344 
							
						 
						
							2010-04-04 19:09:29 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7bde8c07a7 
								
							 
						 
						
							
							
								
								clean up the asmprinter header and privatize some stuff.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100342 
							
						 
						
							2010-04-04 18:52:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								21dc46e256 
								
							 
						 
						
							
							
								
								remove TargetMachine.h #include, also, TRI isn't used frequently  
							
							 
							
							... 
							
							
							
							enough to warrant caching in AsmPrinter, so remove it.
llvm-svn: 100336 
							
						 
						
							2010-04-04 18:06:11 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1198002c81 
								
							 
						 
						
							
							
								
								remove the raw_ostream from various dwarf printing things.  
							
							 
							
							... 
							
							
							
							The only thing left is LEB printing, which uses EmitRawText
for now.
llvm-svn: 100325 
							
						 
						
							2010-04-04 07:48:20 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								915c5f9862 
								
							 
						 
						
							
							
								
								Switch the code generator (except the JIT) onto the new DebugLoc  
							
							 
							
							... 
							
							
							
							representation.  This eliminates the 'DILocation' MDNodes for 
file/line/col tuples from -O0 -g codegen.
This remove the old DebugLoc class, making it a typedef for DebugLoc,
I'll rename NewDebugLoc next.
I didn't update the JIT to use the new apis, so it will continue to
work, but be as slow as before.  Someone should eventually do this
or, better yet, rip out the JIT debug info stuff and build the JIT
on top of MC.
llvm-svn: 100209 
							
						 
						
							2010-04-02 19:42:39 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								18737b2a81 
								
							 
						 
						
							
							
								
								Revert r100117.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100145 
							
						 
						
							2010-04-01 22:47:29 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								15676e5167 
								
							 
						 
						
							
							
								
								Do not eagerly record known previous location. DBG_VALUE may not cause a new label due to one or other reason.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100134 
							
						 
						
							2010-04-01 20:22:44 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1a55ef0427 
								
							 
						 
						
							
							
								
								Skip instructions until new scope is seen.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100117 
							
						 
						
							2010-04-01 17:32:01 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4c603b1c4e 
								
							 
						 
						
							
							
								
								Cosmetic changes.  
							
							 
							
							... 
							
							
							
							Update comment, rename a local variable.
llvm-svn: 100116 
							
						 
						
							2010-04-01 17:16:48 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								7f89a0ac88 
								
							 
						 
						
							
							
								
								Reverting 100048; it broke two Frontend debug info tests.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100058 
							
						 
						
							2010-03-31 23:08:46 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								f3e5afd6d3 
								
							 
						 
						
							
							
								
								Debug info can now properly represent functions inside classes inside other functions.  Partial fix for Radar 7424645.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100048 
							
						 
						
							2010-03-31 21:10:54 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								96956ed0ff 
								
							 
						 
						
							
							
								
								Reduce string trashing.  
							
							 
							
							... 
							
							
							
							llvm-svn: 100038 
							
						 
						
							2010-03-31 20:15:45 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								74729ae094 
								
							 
						 
						
							
							
								
								DwarfDebug: Allocate DIEValues with a BumpPtrAllocator. Most of them are  
							
							 
							
							... 
							
							
							
							POD-like anyway, so we don't even care about calling their d'tors (DIEBlock
being the exception).
~6% less mallocs and ~1% compile time improvement on clang -O0 -g oggenc.c
llvm-svn: 100035 
							
						 
						
							2010-03-31 19:34:01 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								71696ef1ad 
								
							 
						 
						
							
							
								
								tidy up  
							
							 
							
							... 
							
							
							
							llvm-svn: 99998 
							
						 
						
							2010-03-31 06:06:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								03e1b5ab5c 
								
							 
						 
						
							
							
								
								MI != 0 is checked in the assert right above this.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99995 
							
						 
						
							2010-03-31 05:42:48 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								848c7d2e49 
								
							 
						 
						
							
							
								
								use the isDebugValue() predicate and pop_back_val()  
							
							 
							
							... 
							
							
							
							llvm-svn: 99993 
							
						 
						
							2010-03-31 05:39:57 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8d2fe28910 
								
							 
						 
						
							
							
								
								assert is a function-like macro, not a control flow operator.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99992 
							
						 
						
							2010-03-31 05:36:29 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								009de335ac 
								
							 
						 
						
							
							
								
								add new apis for getting/setting !dbg metadata on  
							
							 
							
							... 
							
							
							
							instructions.  In addition to being a convenience,
they are faster than the old apis, particularly when
not going from an MDKindID like people should be
doing.
llvm-svn: 99982 
							
						 
						
							2010-03-31 03:34:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								57c644f926 
								
							 
						 
						
							
							
								
								Ignore invalid metadata.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99938 
							
						 
						
							2010-03-30 22:09:52 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								67d94ab0f8 
								
							 
						 
						
							
							
								
								There is no need to fall through after processing DBG_VALUE machine instruction.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99899 
							
						 
						
							2010-03-30 18:07:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								23b2ae621c 
								
							 
						 
						
							
							
								
								Encode start location of debug value, communicated through DBG_VALUE machine instruction, in a variable's DIE.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99845 
							
						 
						
							2010-03-29 22:59:58 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4787975994 
								
							 
						 
						
							
							
								
								fix a variety of issues were we'd start DebugTimer but  
							
							 
							
							... 
							
							
							
							not stop it by using RAII.
llvm-svn: 99832 
							
						 
						
							2010-03-29 20:38:20 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								bd477bef25 
								
							 
						 
						
							
							
								
								Refactor code to push DILocation prcessing into DwarfDebug.cpp from AsmPrinter.cpp.  
							
							 
							
							... 
							
							
							
							This is same as r99772 (which was reverted) with just one meaningful difference where two source lines exchanged their positions.
llvm-svn: 99816 
							
						 
						
							2010-03-29 17:20:31 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1e8ccb5f8b 
								
							 
						 
						
							
							
								
								Revert 99772.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99778 
							
						 
						
							2010-03-28 21:23:37 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								32bdaef3fe 
								
							 
						 
						
							
							
								
								Refactoring. Push DILocation processing in to DwarfDebug from AsmPrinter.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99772 
							
						 
						
							2010-03-28 18:57:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								834392fcc6 
								
							 
						 
						
							
							
								
								Use SP filename directly instead of SP's context's filename.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99429 
							
						 
						
							2010-03-24 21:30:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d22ed622b3 
								
							 
						 
						
							
							
								
								Emit DW_AT_low_pc and DW_AT_high_pc attributes for TAG_compile_unit.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99225 
							
						 
						
							2010-03-22 23:11:36 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								53e91f0836 
								
							 
						 
						
							
							
								
								DW_AT_stmt_list attribute attached with a compile unit encodes offset of line number information for this compile unit in debug_line section. This offset is always zero when only one compile unit is emitted in a object file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 99223 
							
						 
						
							2010-03-22 22:38:48 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								54ebc986b1 
								
							 
						 
						
							
							
								
								Fix a memory leak from DIE::addSiblingOffset() by adding the DIEValue  
							
							 
							
							... 
							
							
							
							it allocates to DwarfDebug::DIEValues.
llvm-svn: 99196 
							
						 
						
							2010-03-22 18:47:14 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								852a04e7ce 
								
							 
						 
						
							
							
								
								Fix EmitSectionOffset incorrect argument. DwarfDebug is emitting debug info so isEH is always false. This was hiding until now from compilers because of default arguments. This was hiding from dwarf debug info users because for most of the platform isAbsoluteEHSectionOffsets() is same as isAbsoluteDebugSectionOffsets(). But Chris found it while updating dwarf printer to use MC*.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98743 
							
						 
						
							2010-03-17 17:29:55 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a3e9c9ca7b 
								
							 
						 
						
							
							
								
								Emit dwarf variable info communicated by code generator through DBG_VALUE machine instructions.  
							
							 
							
							... 
							
							
							
							This is a work in progress.
llvm-svn: 98556 
							
						 
						
							2010-03-15 18:33:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6e52e9db31 
								
							 
						 
						
							
							
								
								get MMI out of the label uniquing business, just go to MCContext  
							
							 
							
							... 
							
							
							
							to get unique assembler temporary labels.
llvm-svn: 98489 
							
						 
						
							2010-03-14 08:36:50 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6dcaba516f 
								
							 
						 
						
							
							
								
								don't use getDWLabel("label" anymore, always go through MMI.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98485 
							
						 
						
							2010-03-14 08:18:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b4666f4517 
								
							 
						 
						
							
							
								
								change SrcLineInfo to contain a label instead of a label ID.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98483 
							
						 
						
							2010-03-14 08:15:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ee95d4c61c 
								
							 
						 
						
							
							
								
								use Label->isDefined() instead of isLabelDeleted() now that we  
							
							 
							
							... 
							
							
							
							consistently use MCSymbol and only call this predicate after
they should have been emitted.
llvm-svn: 98461 
							
						 
						
							2010-03-14 02:20:58 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								41e275dc8e 
								
							 
						 
						
							
							
								
								simplify EmitFrameMoves to take BaseLabel in as a symbol  
							
							 
							
							... 
							
							
							
							instead of as a stem+idx pair, simplify the "is a new 
location" check to use symbol comparison.
llvm-svn: 98432 
							
						 
						
							2010-03-13 08:05:25 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8811e12314 
								
							 
						 
						
							
							
								
								factor some labels, simplify some code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98429 
							
						 
						
							2010-03-13 07:40:56 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2c3f478c0b 
								
							 
						 
						
							
							
								
								various cleanups.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98426 
							
						 
						
							2010-03-13 07:26:18 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b7aa9527ef 
								
							 
						 
						
							
							
								
								reimplement the string pool used for inlined function  
							
							 
							
							... 
							
							
							
							entries to not thrash std::strings and MCSymbols.
llvm-svn: 98415 
							
						 
						
							2010-03-13 02:17:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9e4cafe6f1 
								
							 
						 
						
							
							
								
								inline the now-trivial implementation of GetGlobalValueSymbol into  
							
							 
							
							... 
							
							
							
							some of its callers.
llvm-svn: 98388 
							
						 
						
							2010-03-12 21:09:07 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								35b4e4f641 
								
							 
						 
						
							
							
								
								Free DbgScopes in DwarfDebug::endFunction().  Also increased the const-ness of  
							
							 
							
							... 
							
							
							
							several fields to make it easier to figure out where bugs might be creeping in.
llvm-svn: 98358 
							
						 
						
							2010-03-12 17:45:06 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f5c2a6b371 
								
							 
						 
						
							
							
								
								There is no need to create specification DIE for definitions at DIFile level.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98302 
							
						 
						
							2010-03-11 23:44:52 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								0708de1f97 
								
							 
						 
						
							
							
								
								Avoid leaking CompileUnits in DwarfDebug.cpp.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98268 
							
						 
						
							2010-03-11 18:29:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a26fbe4d68 
								
							 
						 
						
							
							
								
								add missing filename!  
							
							 
							
							... 
							
							
							
							llvm-svn: 98125 
							
						 
						
							2010-03-10 02:29:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b245dfb408 
								
							 
						 
						
							
							
								
								inline away a form of IsPCRelative, eliminating the  
							
							 
							
							... 
							
							
							
							dead IsPCRel argument.
llvm-svn: 98117 
							
						 
						
							2010-03-10 01:17:49 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7e998b7363 
								
							 
						 
						
							
							
								
								add some fixme's for MCizing.  EH still has a few things that  
							
							 
							
							... 
							
							
							
							need to be MCized, but the last debug info thing are LEB and
cygwin specific (which the MC api doesn't support yet) and
one specific form of EmitReference which I'll tackle next.
llvm-svn: 98116 
							
						 
						
							2010-03-10 01:04:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								566cae9086 
								
							 
						 
						
							
							
								
								eliminate EOL, adding all comments with the OutStreamer.AddComment  
							
							 
							
							... 
							
							
							
							method.  With this, comments should end up on the same lines as the .byte
directives (for example) and we now get no output with:
$ llc CodeGen/X86/2009-02-12-DebugInfoVLA.ll -o - -filetype=null -asm-verbose
woot.
llvm-svn: 98105 
							
						 
						
							2010-03-09 23:52:58 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3d72a678de 
								
							 
						 
						
							
							
								
								eliminate a bunch of \n's that are being printed to O.  Next up is to kill  
							
							 
							
							... 
							
							
							
							off "EOL".
llvm-svn: 98102 
							
						 
						
							2010-03-09 23:38:23 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ba35a67062 
								
							 
						 
						
							
							
								
								reapply r98035:  
							
							 
							
							... 
							
							
							
							Now that setStartLabel takes an MCSymbol, we can de-ID'ize
beginScope and RecordSourceLine.
llvm-svn: 98047 
							
						 
						
							2010-03-09 04:54:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								54a6876821 
								
							 
						 
						
							
							
								
								add some extra checks.  I'm not sure why, but this does unbreak a  
							
							 
							
							... 
							
							
							
							failure remaining on mainline.
llvm-svn: 98046 
							
						 
						
							2010-03-09 04:48:35 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Christopher
							
						 
						
							 
							
							
							
							
								
							
							
								66194fbf86 
								
							 
						 
						
							
							
								
								Speculatively revert r98035. It appears to have caused a set of buildbot  
							
							 
							
							... 
							
							
							
							failures.
llvm-svn: 98039 
							
						 
						
							2010-03-09 02:36:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								06c5e9060c 
								
							 
						 
						
							
							
								
								Now that setStartLabel takes an MCSymbol, we can de-ID'ize  
							
							 
							
							... 
							
							
							
							beginScope and RecordSourceLine.
llvm-svn: 98035 
							
						 
						
							2010-03-09 02:08:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e13c37232a 
								
							 
						 
						
							
							
								
								change DbgScope to keep track of the start/end label as MCSymbol*  
							
							 
							
							... 
							
							
							
							now that the dependence on ID is removed from MMI.
llvm-svn: 98034 
							
						 
						
							2010-03-09 01:58:53 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a552246b3d 
								
							 
						 
						
							
							
								
								remove a useless optimization: now that label replacement never  
							
							 
							
							... 
							
							
							
							happens, the start/end of a scope can never be the same.
llvm-svn: 98032 
							
						 
						
							2010-03-09 01:52:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c3b70f636f 
								
							 
						 
						
							
							
								
								strength reduce MMI::MappedLabel to MMI::isLabelDeleted,  
							
							 
							
							... 
							
							
							
							and add a FIXME about how we are eventually going to zap this
lookup table once mc world domination is complete.
llvm-svn: 98031 
							
						 
						
							2010-03-09 01:51:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9e57c676dd 
								
							 
						 
						
							
							
								
								mcstreamerize AsmPrinter::printLabel.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98025 
							
						 
						
							2010-03-09 01:02:30 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b14490d912 
								
							 
						 
						
							
							
								
								add a EmitSymbolValue convenience method to MCStreamer.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98017 
							
						 
						
							2010-03-09 00:39:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								085b65283c 
								
							 
						 
						
							
							
								
								make InlineInfoLabels hold MCSymbol*'s, avoiding  
							
							 
							
							... 
							
							
							
							recomputation of the labels.
llvm-svn: 98016 
							
						 
						
							2010-03-09 00:31:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								53d6d1e87d 
								
							 
						 
						
							
							
								
								mc'ize the last use of PrintLabelName and eliminate PrintLabelName.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98015 
							
						 
						
							2010-03-09 00:26:09 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4d728127fb 
								
							 
						 
						
							
							
								
								now that the debug and eh emitters use a common .set counter,  
							
							 
							
							... 
							
							
							
							we can eliminate "flavor".
llvm-svn: 98011 
							
						 
						
							2010-03-09 00:00:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								27a9732450 
								
							 
						 
						
							
							
								
								simplify EmitSectionOffset to always use .set if it is  
							
							 
							
							... 
							
							
							
							available, the only thing this affects is that we produce
.set in one case we didn't before, which shouldn't harm
anything.  Make EmitSectionOffset call EmitDifference
instead of duplicating it.
llvm-svn: 98005 
							
						 
						
							2010-03-08 23:23:25 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								449a9ff14b 
								
							 
						 
						
							
							
								
								Remove a version of EmitDifference.  
							
							 
							
							... 
							
							
							
							llvm-svn: 98002 
							
						 
						
							2010-03-08 23:02:59 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ee20b5f236 
								
							 
						 
						
							
							
								
								eliminate a form of PrintLabelName.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97999 
							
						 
						
							2010-03-08 22:52:49 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b779eb6a1d 
								
							 
						 
						
							
							
								
								eliminate the non-MCSymbol versions of EmitReference.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97997 
							
						 
						
							2010-03-08 22:47:57 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								722714dde2 
								
							 
						 
						
							
							
								
								mc'ize EmitLabel.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97996 
							
						 
						
							2010-03-08 22:44:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8dcf41ed66 
								
							 
						 
						
							
							
								
								merge DIEObjectLabel and DIEDwarfLabel into DIELabel.  
							
							 
							
							... 
							
							
							
							Yes, DIE you fiendish labels, die all of you.
llvm-svn: 97995 
							
						 
						
							2010-03-08 22:31:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								bc9210cb70 
								
							 
						 
						
							
							
								
								elimiante the DWLabel class, using MCSymbol instead.  Start  
							
							 
							
							... 
							
							
							
							switching some stuff over to passing around MCSymbol* instead
of stem+ID.
llvm-svn: 97993 
							
						 
						
							2010-03-08 22:23:36 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8119fe87d8 
								
							 
						 
						
							
							
								
								Derive DIType from DIScope. This simplifies getContext() where for members the context is a type. This also eliminates need of CompileUnitMaps maintained by dwarf writer.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97990 
							
						 
						
							2010-03-08 22:02:50 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3b548aa8e2 
								
							 
						 
						
							
							
								
								Avoid using DIDescriptor.isNull().  
							
							 
							
							... 
							
							
							
							This is a first step towards eliminating checks in Descriptor constructors.
llvm-svn: 97975 
							
						 
						
							2010-03-08 20:52:55 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								bc97f6b757 
								
							 
						 
						
							
							
								
								Revert r97947.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97963 
							
						 
						
							2010-03-08 19:20:38 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								fe28599f6f 
								
							 
						 
						
							
							
								
								Avoid using DIDescriptor.isNull().  
							
							 
							
							... 
							
							
							
							This is a first step towards eliminating unncessary constructor checks in light weight DIDescriptor wrappers.
llvm-svn: 97947 
							
						 
						
							2010-03-08 18:25:48 +00:00  
						
					 
				
					
						
							
							
								 
								Douglas Gregor
							
						 
						
							 
							
							
							
							
								
							
							
								9abb538be0 
								
							 
						 
						
							
							
								
								Revert r97917, which was causing Clang Debug self-host failures.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97932 
							
						 
						
							2010-03-08 02:58:37 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								37a0372fc4 
								
							 
						 
						
							
							
								
								Roll r97906 forward again, without double-deleting CompileUnit::IndexTyDie.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97917 
							
						 
						
							2010-03-07 17:10:13 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								7068bdba50 
								
							 
						 
						
							
							
								
								_2_ gcc crashes, ah, ah, ah...  
							
							 
							
							... 
							
							
							
							(Rolling back r97906.)
llvm-svn: 97909 
							
						 
						
							2010-03-07 07:16:49 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								413721b050 
								
							 
						 
						
							
							
								
								Avoid leaking CompileUnits and DbgScopes from DwarfDebug.  Leaks found by Valgrind!  
							
							 
							
							... 
							
							
							
							llvm-svn: 97906 
							
						 
						
							2010-03-07 06:55:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f200b39d13 
								
							 
						 
						
							
							
								
								Fix grammar.  
							
							 
							
							... 
							
							
							
							Thanks Duncan!
llvm-svn: 97572 
							
						 
						
							2010-03-02 17:58:15 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d0fa304dc7 
								
							 
						 
						
							
							
								
								Constructors and operators for anonymous aggregates does not names. Do not force empty AT_name attribute in such cases.  
							
							 
							
							... 
							
							
							
							llvm-svn: 97533 
							
						 
						
							2010-03-02 01:26:20 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ca55a04273 
								
							 
						 
						
							
							
								
								Before setting scope end marker, pay attention to scope begin marker and existing scope end marker, if any. Scope must begin before it ends and nested inlined scope do not truncate surrounding scope.  
							
							 
							
							... 
							
							
							
							llvm-svn: 96445 
							
						 
						
							2010-02-17 02:20:34 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								4a618827de 
								
							 
						 
						
							
							
								
								Fix "the the" and similar typos.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95781 
							
						 
						
							2010-02-10 16:03:48 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ce25dd74c0 
								
							 
						 
						
							
							
								
								Add declaration attribute to a variable DIE, if there is a separate DIE for the definition.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95646 
							
						 
						
							2010-02-09 01:58:33 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6efc8e5120 
								
							 
						 
						
							
							
								
								Set DW_AT_artificial only if argument is marked as artificial.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95461 
							
						 
						
							2010-02-06 01:02:37 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d4be4ced76 
								
							 
						 
						
							
							
								
								Do not generate specification DIE for nested functions.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95452 
							
						 
						
							2010-02-05 23:09:20 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d231689adb 
								
							 
						 
						
							
							
								
								Emit appropriate expression to find virtual base offset.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95242 
							
						 
						
							2010-02-03 20:08:48 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								999b499024 
								
							 
						 
						
							
							
								
								Provide interface to identifiy artificial methods.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95240 
							
						 
						
							2010-02-03 19:57:19 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								057c642486 
								
							 
						 
						
							
							
								
								Apparently gdb is not amused by empty lines in pubtypes section.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95064 
							
						 
						
							2010-02-02 03:47:27 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6d404adc1b 
								
							 
						 
						
							
							
								
								NULL terminate name in pubtypes sections.  
							
							 
							
							... 
							
							
							
							llvm-svn: 95062 
							
						 
						
							2010-02-02 03:37:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								160c92dd19 
								
							 
						 
						
							
							
								
								Emit declaration DIE for the class static variables.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94870 
							
						 
						
							2010-01-30 01:08:30 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								aedd6f5b33 
								
							 
						 
						
							
							
								
								Add size and location info in DW_TAG_class_type descriptor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94822 
							
						 
						
							2010-01-29 18:34:58 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								56e9b5975d 
								
							 
						 
						
							
							
								
								remove a noop function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94616 
							
						 
						
							2010-01-26 23:26:29 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								76555b513c 
								
							 
						 
						
							
							
								
								constify a bunch of dwarf stuff now that the registerinfo method  
							
							 
							
							... 
							
							
							
							is constified.
llvm-svn: 94613 
							
						 
						
							2010-01-26 23:18:02 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1973df2e3f 
								
							 
						 
						
							
							
								
								Use AssertingVH, just to be paranoid.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94593 
							
						 
						
							2010-01-26 21:39:14 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								303a1beea6 
								
							 
						 
						
							
							
								
								Emit DW_AT_containing_type attribute for a class if containing type is known.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94587 
							
						 
						
							2010-01-26 21:16:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								601ef33c77 
								
							 
						 
						
							
							
								
								mcstreamerize .file and .file.  This also fixes an issue where the  
							
							 
							
							... 
							
							
							
							normal form of .file would fail if the filename had a weird character
in it.
llvm-svn: 94437 
							
						 
						
							2010-01-25 18:58:59 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								62f2840572 
								
							 
						 
						
							
							
								
								fix some issues where we weren't emitting enough newlines.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94370 
							
						 
						
							2010-01-24 19:01:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5adf987417 
								
							 
						 
						
							
							
								
								when emitting DIEs, emit the comment on the same line as the directive.  
							
							 
							
							... 
							
							
							
							This fixes FrontendObjC/2009-11-30-Objc-ID.m
llvm-svn: 94369 
							
						 
						
							2010-01-24 18:54:17 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c3f23b84ea 
								
							 
						 
						
							
							
								
								remove one form of EmitString, just use EmitBytes instead.  We must  
							
							 
							
							... 
							
							
							
							be careful to add a \0 at the end though, because EmitString didn't
do this.
llvm-svn: 94277 
							
						 
						
							2010-01-23 03:11:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6f2d99df03 
								
							 
						 
						
							
							
								
								move "EOL" from asmprinter to dwarfprinter.  It should eventually  
							
							 
							
							... 
							
							
							
							be completely eliminated, but today is not that day.
llvm-svn: 94253 
							
						 
						
							2010-01-22 23:47:11 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fa82355f33 
								
							 
						 
						
							
							
								
								move uleb printing from asmprinter to dwarfprinter, mcize,  
							
							 
							
							... 
							
							
							
							cleanup and eliminate a bunch more uses of "EOL".
llvm-svn: 94250 
							
						 
						
							2010-01-22 23:18:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2303145081 
								
							 
						 
						
							
							
								
								move sleb printing out of asmprinter into dwarf printer, make clients  
							
							 
							
							... 
							
							
							
							handle the comment better, MCize the non-.sleb case.
llvm-svn: 94244 
							
						 
						
							2010-01-22 22:56:55 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ac277eb930 
								
							 
						 
						
							
							
								
								Remove MetadataBase class because it is not adding significant value.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94243 
							
						 
						
							2010-01-22 22:52:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								69bb026835 
								
							 
						 
						
							
							
								
								rename the dwarf class to DwarfPrinter.  This matches the filename  
							
							 
							
							... 
							
							
							
							and much more accurately describes what it is all about.
llvm-svn: 94233 
							
						 
						
							2010-01-22 22:23:57 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f5c834fce1 
								
							 
						 
						
							
							
								
								inline away the trivial AsmPrinter::EOL() method.  
							
							 
							
							... 
							
							
							
							llvm-svn: 94230 
							
						 
						
							2010-01-22 22:09:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								7771b7c621 
								
							 
						 
						
							
							
								
								If a instruction belongs to another function (and not current function) as per debug info attached with the instruction then ignore the dangling lexical scope of this instruction. Such scopes are unreachable.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93967 
							
						 
						
							2010-01-20 02:05:23 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								018b29b039 
								
							 
						 
						
							
							
								
								MDNodes are not expected to disappear or replaced by another MDNode, so there is no need to pay the cost of WeakVH and ValueMaps.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93865 
							
						 
						
							2010-01-19 06:19:05 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								fe189e65d7 
								
							 
						 
						
							
							
								
								Revert accident check-in from r93165.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93832 
							
						 
						
							2010-01-19 01:26:02 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								4d128a2387 
								
							 
						 
						
							
							
								
								Switch some functions to take Twines, eliminate uses of StringExtras.h.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93680 
							
						 
						
							2010-01-17 07:46:39 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f62e3ee8c5 
								
							 
						 
						
							
							
								
								move the mangler into libtarget from vmcore.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93664 
							
						 
						
							2010-01-16 21:57:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								06d45f6e75 
								
							 
						 
						
							
							
								
								Change DIEObjectLabel to take an MCSymbol instead of std::string.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93647 
							
						 
						
							2010-01-16 18:50:28 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								814b7e7488 
								
							 
						 
						
							
							
								
								No need to use WeakVH here.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93631 
							
						 
						
							2010-01-16 06:17:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c0e17df3ce 
								
							 
						 
						
							
							
								
								Replace DebugLocTuple with DILocation.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93630 
							
						 
						
							2010-01-16 06:09:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0633820599 
								
							 
						 
						
							
							
								
								Add FIXME.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93562 
							
						 
						
							2010-01-15 22:08:16 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								89880c8224 
								
							 
						 
						
							
							
								
								Do not use AT_specification die for static variables. It confuses gdb.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93494 
							
						 
						
							2010-01-15 01:12:22 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2108ee075f 
								
							 
						 
						
							
							
								
								Do not emit multiple AT_container_type attributes.  
							
							 
							
							... 
							
							
							
							We need to find a better way to emit this info.
llvm-svn: 93481 
							
						 
						
							2010-01-15 00:26:31 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8992323bb9 
								
							 
						 
						
							
							
								
								s/NextValueNo/NextMDValueNo while processing metadata.  
							
							 
							
							... 
							
							
							
							llvm-svn: 93165 
							
						 
						
							2010-01-11 18:52:33 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								2b45998b7b 
								
							 
						 
						
							
							
								
								Kill dead store.  
							
							 
							
							... 
							
							
							
							llvm-svn: 92920 
							
						 
						
							2010-01-07 17:50:57 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d146e2e3df 
								
							 
						 
						
							
							
								
								If a scope has only one instruction then first instruction is also the last instruction.  
							
							 
							
							... 
							
							
							
							llvm-svn: 92736 
							
						 
						
							2010-01-05 16:59:17 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								43ef34d2a5 
								
							 
						 
						
							
							
								
								Use StringRef.startswith().  
							
							 
							
							... 
							
							
							
							llvm-svn: 92671 
							
						 
						
							2010-01-05 01:46:14 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e6433faba6 
								
							 
						 
						
							
							
								
								Fix debug_inlined section entries for routines whose names are changed through __asm() extension.  
							
							 
							
							... 
							
							
							
							llvm-svn: 92533 
							
						 
						
							2010-01-04 23:04:36 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								530a075f17 
								
							 
						 
						
							
							
								
								Fix begin and end markers for nested scopes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 92505 
							
						 
						
							2010-01-04 20:44:00 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f81add3fdf 
								
							 
						 
						
							
							
								
								move these out of their own timer groups into the 'uncategorized' groups.  
							
							 
							
							... 
							
							
							
							llvm-svn: 92206 
							
						 
						
							2009-12-28 07:41:18 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								c230cb947a 
								
							 
						 
						
							
							
								
								Change errs() to dbgs().  
							
							 
							
							... 
							
							
							
							llvm-svn: 92096 
							
						 
						
							2009-12-24 00:31:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1f4690c624 
								
							 
						 
						
							
							
								
								Add support to emit debug info for C++ namespaces.  
							
							 
							
							... 
							
							
							
							llvm-svn: 91440 
							
						 
						
							2009-12-15 19:16:48 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								525dda05a0 
								
							 
						 
						
							
							
								
								Use DW_AT_specification to point to DIE describing function declaration.  
							
							 
							
							... 
							
							
							
							llvm-svn: 91278 
							
						 
						
							2009-12-14 16:18:45 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b314bd688a 
								
							 
						 
						
							
							
								
								Construct CompileUnits lazily.  
							
							 
							
							... 
							
							
							
							llvm-svn: 91159 
							
						 
						
							2009-12-11 21:37:07 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2eec32d944 
								
							 
						 
						
							
							
								
								If VariableDIe is not created (may be because global was optimzed away) then do not try to use the variable die.  
							
							 
							
							... 
							
							
							
							llvm-svn: 91077 
							
						 
						
							2009-12-10 23:25:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2b75ed2c3d 
								
							 
						 
						
							
							
								
								Refactor code that finds context for a given die.  
							
							 
							
							... 
							
							
							
							Create global variable DIEs after creating subprogram DIEs. This allows function level static variable's to find their context at the time of DIE creation.
llvm-svn: 91055 
							
						 
						
							2009-12-10 19:14:49 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b5b60ea4f9 
								
							 
						 
						
							
							
								
								Refactor.  
							
							 
							
							... 
							
							
							
							llvm-svn: 91051 
							
						 
						
							2009-12-10 18:05:33 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								9ccfb641d1 
								
							 
						 
						
							
							
								
								Reapply r90858, a cleanup patch.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90979 
							
						 
						
							2009-12-09 18:24:21 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								512001ac7d 
								
							 
						 
						
							
							
								
								Revert 90858 90875 and 90805 for now.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90898 
							
						 
						
							2009-12-08 23:21:45 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								24c0bb1ca1 
								
							 
						 
						
							
							
								
								Cleanup.  
							
							 
							
							... 
							
							
							
							There is no need to supply ModuleCU to addType() as a parameter.
llvm-svn: 90858 
							
						 
						
							2009-12-08 15:31:31 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								7d723ec70d 
								
							 
						 
						
							
							
								
								Do not try to push dead variable's debug info into namespace info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90857 
							
						 
						
							2009-12-08 15:01:35 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b074d1783b 
								
							 
						 
						
							
							
								
								Add support to emit debug info for c++ style namespaces.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90805 
							
						 
						
							2009-12-07 21:41:32 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								0891d759b5 
								
							 
						 
						
							
							
								
								Don't print a space before the : between the file name and line number.  
							
							 
							
							... 
							
							
							
							And separate the directory and file name with a '/'.
llvm-svn: 90641 
							
						 
						
							2009-12-05 02:00:34 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								3a6164e8ab 
								
							 
						 
						
							
							
								
								Print newlines after printing labels for debug info, so that the output  
							
							 
							
							... 
							
							
							
							isn't cluttered with things like "Llabel47:Llabel48:  movq  (%rsi), %xmm3"
llvm-svn: 90638 
							
						 
						
							2009-12-05 01:42:34 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8f0460278c 
								
							 
						 
						
							
							
								
								In TAG_subrange_type, uppder bound is zero indexed.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90617 
							
						 
						
							2009-12-04 23:10:24 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3b666fef67 
								
							 
						 
						
							
							
								
								Insert composite type DIE into the map before processing type fields. This allows fields to find their context DIE from the map.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90498 
							
						 
						
							2009-12-03 23:46:57 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								eb57c59b66 
								
							 
						 
						
							
							
								
								Add support to emit debug info for virtual functions and virtual base classes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90474 
							
						 
						
							2009-12-03 19:11:07 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								236526dd18 
								
							 
						 
						
							
							
								
								Emit method definition DIE at module level (even for methods with inlined functino body at soure level) so that the debugger can invoke it. This fixes many test failures in gdb test suite.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90375 
							
						 
						
							2009-12-03 01:25:38 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8c33959df2 
								
							 
						 
						
							
							
								
								Clarify that DIEString does not keep a copy of the string.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90318 
							
						 
						
							2009-12-02 15:25:16 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a605b9124a 
								
							 
						 
						
							
							
								
								Reuse existing subprogram DIE.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90281 
							
						 
						
							2009-12-01 23:07:59 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0a2c0bcb14 
								
							 
						 
						
							
							
								
								Clear function specific containers while processing end of a function, even if DW_TAG_subprogram for current function is not found.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90247 
							
						 
						
							2009-12-01 18:13:48 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ae466efe2e 
								
							 
						 
						
							
							
								
								If pointer type has a name then do not ignore the name.  
							
							 
							
							... 
							
							
							
							llvm-svn: 90172 
							
						 
						
							2009-11-30 23:56:56 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								4cd30817d3 
								
							 
						 
						
							
							
								
								Avoid some possibly unsafe uses of StringRef::data().  
							
							 
							
							... 
							
							
							
							llvm-svn: 89873 
							
						 
						
							2009-11-25 18:26:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2d9caf9fe5 
								
							 
						 
						
							
							
								
								Use StringRef (again) in DebugInfo interface.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89866 
							
						 
						
							2009-11-25 17:36:49 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b3e0168428 
								
							 
						 
						
							
							
								
								Use StringRef instead of std::string in DIEString.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89793 
							
						 
						
							2009-11-24 19:42:17 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								c8654eb64e 
								
							 
						 
						
							
							
								
								Swith to pubtypes section before emitting pub types.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89787 
							
						 
						
							2009-11-24 19:18:41 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								04d2f2d192 
								
							 
						 
						
							
							
								
								Emit pubtypes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89725 
							
						 
						
							2009-11-24 01:14:22 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								3650f4ed0c 
								
							 
						 
						
							
							
								
								Simplify this code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89702 
							
						 
						
							2009-11-23 21:30:55 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b5b51598ba 
								
							 
						 
						
							
							
								
								Revert r89487.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89686 
							
						 
						
							2009-11-23 18:43:37 +00:00  
						
					 
				
					
						
							
							
								 
								Jim Grosbach
							
						 
						
							 
							
							
							
							
								
							
							
								bf6d35893f 
								
							 
						 
						
							
							
								
								Add getFrameIndexReference() to TargetRegisterInfo, which allows targets to  
							
							 
							
							... 
							
							
							
							tell debug info which base register to use to reference a frame index on a
per-index basis. This is useful, for example, in the presence of dynamic
stack realignment when local variables are indexed via the stack pointer and
stack-based arguments via the frame pointer.
llvm-svn: 89620 
							
						 
						
							2009-11-22 20:14:00 +00:00  
						
					 
				
					
						
							
							
								 
								Jim Grosbach
							
						 
						
							 
							
							
							
							
								
							
							
								00e9c6103b 
								
							 
						 
						
							
							
								
								80-column cleanup  
							
							 
							
							... 
							
							
							
							llvm-svn: 89612 
							
						 
						
							2009-11-22 19:20:36 +00:00  
						
					 
				
					
						
							
							
								 
								Jim Grosbach
							
						 
						
							 
							
							
							
							
								
							
							
								042483efb1 
								
							 
						 
						
							
							
								
								remove trailing whitespace  
							
							 
							
							... 
							
							
							
							llvm-svn: 89567 
							
						 
						
							2009-11-21 23:12:12 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								930143b0dc 
								
							 
						 
						
							
							
								
								Cosmetic changes, which were long overdue, in DwarfDebug.cpp.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89537 
							
						 
						
							2009-11-21 02:48:08 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e1bbc33355 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89522 
							
						 
						
							2009-11-21 00:54:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								92e8c655b2 
								
							 
						 
						
							
							
								
								There is no need to use FoldingSet to unique DIEs.  
							
							 
							
							... 
							
							
							
							DIEs are created from MDNode, which are already uniqued. And DwarfDebug already uses ValueMaps to find and use existing DIE for a given MDNode.
llvm-svn: 89518 
							
						 
						
							2009-11-21 00:31:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								e064ad4741 
								
							 
						 
						
							
							
								
								Do not hold on to a map slot while new entries may be inserted into the map.  
							
							 
							
							... 
							
							
							
							Use ValueMap, instead of std::map.
llvm-svn: 89490 
							
						 
						
							2009-11-20 21:37:22 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								85121a3bda 
								
							 
						 
						
							
							
								
								There is no need to emit source location info for DW_TAG_pointer_type.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89487 
							
						 
						
							2009-11-20 21:05:37 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								a1c09d674e 
								
							 
						 
						
							
							
								
								Remove VISIBILITY_HIDDEN from the classes in this directory. Fixes bug 5507.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89075 
							
						 
						
							2009-11-17 09:17:08 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								b7993d61f2 
								
							 
						 
						
							
							
								
								Revert r88939.  
							
							 
							
							... 
							
							
							
							llvm-svn: 89066 
							
						 
						
							2009-11-17 08:11:44 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f3d7c08e34 
								
							 
						 
						
							
							
								
								Revert r88939.  
							
							 
							
							... 
							
							
							
							llvm-svn: 88973 
							
						 
						
							2009-11-16 21:53:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2ffd9935a1 
								
							 
						 
						
							
							
								
								Add VISIBILITY_HIDDEN marker.  
							
							 
							
							... 
							
							
							
							llvm-svn: 88939 
							
						 
						
							2009-11-16 19:20:48 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								97f99fa554 
								
							 
						 
						
							
							
								
								Ignore nameless variables.  
							
							 
							
							... 
							
							
							
							llvm-svn: 87069 
							
						 
						
							2009-11-13 02:25:26 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2904aa9f6e 
								
							 
						 
						
							
							
								
								"Attach debug info with llvm instructions" mode was enabled a month ago. Now make it permanent and remove old way of inserting intrinsics to encode debug info for line number and scopes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 87014 
							
						 
						
							2009-11-12 19:02:56 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d41f119dac 
								
							 
						 
						
							
							
								
								If doesSupportDebugInformation() is false then do not try to emit dwarf debug info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86874 
							
						 
						
							2009-11-11 19:55:08 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								75b4d3562c 
								
							 
						 
						
							
							
								
								Fix -Asserts warning.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86794 
							
						 
						
							2009-11-11 03:09:50 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								78319c67ca 
								
							 
						 
						
							
							
								
								Do not assume first function scope seen represents current function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86771 
							
						 
						
							2009-11-11 00:31:36 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4450f26621 
								
							 
						 
						
							
							
								
								While creating DbgScopes, do not forget parent scope.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86763 
							
						 
						
							2009-11-11 00:18:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cdb7d44d6d 
								
							 
						 
						
							
							
								
								Ignore variable if scope info is not available.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86753 
							
						 
						
							2009-11-10 23:20:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f6eeaebd76 
								
							 
						 
						
							
							
								
								Implement support to debug inlined functions.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86748 
							
						 
						
							2009-11-10 23:06:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cc11371b77 
								
							 
						 
						
							
							
								
								Do not bother to emit debug info for nameless global variable.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86259 
							
						 
						
							2009-11-06 17:58:12 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								06ce6506d2 
								
							 
						 
						
							
							
								
								Do not try to emit debug info entry for dead global variable.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86212 
							
						 
						
							2009-11-06 01:30:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f05d57283e 
								
							 
						 
						
							
							
								
								While calculating original type size for a derived type, handle type variants encoded as DIDerivedType appropriately.  
							
							 
							
							... 
							
							
							
							This improves bitfield support.
llvm-svn: 86073 
							
						 
						
							2009-11-04 23:48:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								67f56f08c2 
								
							 
						 
						
							
							
								
								Fix DW_AT_data_member_location for bit-fields. It points to the location of annonymous field that covers respective field.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86054 
							
						 
						
							2009-11-04 22:06:12 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								5d3fe2fc77 
								
							 
						 
						
							
							
								
								Array element size does not match array size but array is not a bitfield.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86043 
							
						 
						
							2009-11-04 19:37:40 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ffa7c07352 
								
							 
						 
						
							
							
								
								Ignore unnamed variables.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85909 
							
						 
						
							2009-11-03 18:30:27 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								6235b19d7b 
								
							 
						 
						
							
							
								
								Fix a funky "declared with greater visibility than the type of its field"  
							
							 
							
							... 
							
							
							
							warning from gcc by removing VISIBILITY_HIDDEN attributes.  
llvm-svn: 85873 
							
						 
						
							2009-11-03 06:29:36 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								cfeaa48642 
								
							 
						 
						
							
							
								
								Do not held on to DenseMap slot accross map insertion. The insertion may cause the map to grow rending the slot invalid.  
							
							 
							
							... 
							
							
							
							Use this opportunity to use ValueMap instead of DenseMap.
llvm-svn: 85298 
							
						 
						
							2009-10-27 20:47:17 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								12524fd2e5 
								
							 
						 
						
							
							
								
								Do not emit name entry for a pointer type.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84276 
							
						 
						
							2009-10-16 21:27:43 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d0099a94db 
								
							 
						 
						
							
							
								
								If there is not any llvm instruction associated with each lexical scope encoded in debug info then create such scope on demand for variable info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84262 
							
						 
						
							2009-10-16 18:18:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6875c5ebe4 
								
							 
						 
						
							
							
								
								Add support to record DbgScope as inlined scope.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84134 
							
						 
						
							2009-10-14 21:08:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d7ebfe3963 
								
							 
						 
						
							
							
								
								s/DebugLoc.CompileUnit/DebugLoc.Scope/g  
							
							 
							
							... 
							
							
							
							s/DebugLoc.InlinedLoc/DebugLoc.InlinedAtLoc/g
llvm-svn: 84054 
							
						 
						
							2009-10-13 23:28:53 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								cdf01b5d82 
								
							 
						 
						
							
							
								
								Fix a -Asserts warning.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83950 
							
						 
						
							2009-10-13 06:47:08 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0f58bec599 
								
							 
						 
						
							
							
								
								Find enclosing subprogram info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83922 
							
						 
						
							2009-10-12 23:11:24 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								df45c7f642 
								
							 
						 
						
							
							
								
								Extract scope information from the variable itself, instead of relying on alloca or llvm.dbg.declare location.  
							
							 
							
							... 
							
							
							
							While recording beginning of a function, use scope info from the first location entry instead of just relying on first location entry itself.
llvm-svn: 83684 
							
						 
						
							2009-10-09 22:42:28 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								fafa1fe2ad 
								
							 
						 
						
							
							
								
								Check invalid debug info for enums. This may happen when underlyng enum is optimized away. Eventually DwarfChecker will clean this up during llvm verification stage.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83655 
							
						 
						
							2009-10-09 17:51:49 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								20b2a77765 
								
							 
						 
						
							
							
								
								Do not record line number to implicitly mark start of function if function has arguments. Extra line number entries trip gdb in some cases.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83563 
							
						 
						
							2009-10-08 18:48:03 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4598eb6214 
								
							 
						 
						
							
							
								
								Add support to handle debug info attached to an instruction.  
							
							 
							
							... 
							
							
							
							This is not yet enabled.
llvm-svn: 83400 
							
						 
						
							2009-10-06 18:37:31 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								7d838bb66e 
								
							 
						 
						
							
							
								
								Fix cut-n-pasto.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83367 
							
						 
						
							2009-10-06 03:15:38 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2980a22028 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83362 
							
						 
						
							2009-10-06 02:01:32 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								8db360da7b 
								
							 
						 
						
							
							
								
								Add utility routine to set begin and end labels for DbgScopes.  
							
							 
							
							... 
							
							
							
							This will be used by processDebugLoc().
llvm-svn: 83361 
							
						 
						
							2009-10-06 01:50:42 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								475d32a987 
								
							 
						 
						
							
							
								
								Add utility routine to collect variable debug info. This is not yet used.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83355 
							
						 
						
							2009-10-06 01:26:37 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								d859d86538 
								
							 
						 
						
							
							
								
								Existence of a compile unit for input source file is a good indicator to check debug info's presence in a module.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83348 
							
						 
						
							2009-10-06 00:03:14 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								1c9eef72b4 
								
							 
						 
						
							
							
								
								If subprogram die is not available then construct new one.  
							
							 
							
							... 
							
							
							
							This can happen if debug info is processed lazily.
llvm-svn: 83347 
							
						 
						
							2009-10-05 23:59:00 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4c420eca41 
								
							 
						 
						
							
							
								
								Adjust context for the global variables that are not at file scope, e.g.  
							
							 
							
							... 
							
							
							
							void foo() { static int bar = 42; }
Here, foo's DIE is parent of bar's DIE.
llvm-svn: 83344 
							
						 
						
							2009-10-05 23:40:42 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4144a82154 
								
							 
						 
						
							
							
								
								Set address while constructing DIE.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83343 
							
						 
						
							2009-10-05 23:22:08 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2089d16140 
								
							 
						 
						
							
							
								
								Gracefully handle various scopes while recording source line info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83317 
							
						 
						
							2009-10-05 18:03:19 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								75cc16c0f2 
								
							 
						 
						
							
							
								
								Add support to extract lexical scope information from DebugLoc attached with an machine instruction.  
							
							 
							
							... 
							
							
							
							This is not yet enabled.
llvm-svn: 83210 
							
						 
						
							2009-10-01 20:31:14 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								787f94c28d 
								
							 
						 
						
							
							
								
								Record first and last instruction of a scope in DbgScope.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83207 
							
						 
						
							2009-10-01 18:25:23 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3256c751f5 
								
							 
						 
						
							
							
								
								Use MDNode * directly as an RecordSourceLine() argument.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83182 
							
						 
						
							2009-09-30 22:51:28 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								14cf8ecf0b 
								
							 
						 
						
							
							
								
								Add a way for a frontend to generate more complex dwarf location  
							
							 
							
							... 
							
							
							
							information.  This allows arbitrary code involving DW_OP_plus_uconst
and DW_OP_deref.  The scheme allows for easy extention to include,
any, or all of the DW_OP_ opcodes.  I thought about just exposing all
of them, but, wasn't sure if people wanted the dwarf opcodes exposed
in the api.  Is that a layering violation?
With this scheme, the entire existing block scheme used by llvm-gcc
can be switched over to the new scheme.  I think that would be
cleaner, as then the compiler specific bits are not present in llvm
proper.  Before the old code can be yanked however, similar code in
clang would have to be removed.
Next up, more testing.
llvm-svn: 83120 
							
						 
						
							2009-09-30 00:08:22 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b296942f6d 
								
							 
						 
						
							
							
								
								Remove std::string uses from DebugInfo interface.  
							
							 
							
							... 
							
							
							
							llvm-svn: 83083 
							
						 
						
							2009-09-29 18:40:58 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								944fa25934 
								
							 
						 
						
							
							
								
								Delete space after function name, before (, reflow a comment and  
							
							 
							
							... 
							
							
							
							delete a few blank lines.
llvm-svn: 82729 
							
						 
						
							2009-09-24 23:21:26 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								d6f9a2f90b 
								
							 
						 
						
							
							
								
								Fix spacing.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82727 
							
						 
						
							2009-09-24 23:11:08 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								8808063181 
								
							 
						 
						
							
							
								
								This is overly constraining with respect to clang.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82591 
							
						 
						
							2009-09-23 00:13:30 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								be22ec4cfc 
								
							 
						 
						
							
							
								
								Fix indentation.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82333 
							
						 
						
							2009-09-19 20:40:14 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								c418d6b106 
								
							 
						 
						
							
							
								
								Strip trailing whitespace.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82332 
							
						 
						
							2009-09-19 20:40:05 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								dd5a989034 
								
							 
						 
						
							
							
								
								eliminate the horrid AsmPrinter::getGlobalLinkName method, inlining  
							
							 
							
							... 
							
							
							
							it into all of its call sites and simplifying them.
llvm-svn: 81962 
							
						 
						
							2009-09-16 00:08:41 +00:00  
						
					 
				
					
						
							
							
								 
								Caroline Tice
							
						 
						
							 
							
							
							
							
								
							
							
								183a519771 
								
							 
						 
						
							
							
								
								Don't generate Dwarf line table entries for source line 0.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81542 
							
						 
						
							2009-09-11 18:25:54 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								321bc99a74 
								
							 
						 
						
							
							
								
								remove DebugLoc from MCInst and eliminate "Comment printing" from  
							
							 
							
							... 
							
							
							
							the MCInst path of the asmprinter.  Instead, pull comment printing
out of the autogenerated asmprinter into each target that uses the
autogenerated asmprinter.  This causes code duplication into each
target, but in a way that will be easier to clean up later when more
asmprinter stuff is commonized into the base AsmPrinter class.
This also fixes an xcore strangeness where it inserted two tabs
before every instruction.
llvm-svn: 81396 
							
						 
						
							2009-09-09 23:14:36 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f5d5360065 
								
							 
						 
						
							
							
								
								Ignore malformed global variable debug info.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81055 
							
						 
						
							2009-09-04 23:59:07 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b2de5fa689 
								
							 
						 
						
							
							
								
								Subprogram is a scope. Derive DISubprogram from DIScope.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80637 
							
						 
						
							2009-08-31 22:47:13 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								869529c58c 
								
							 
						 
						
							
							
								
								Rename DIBlock as DILexicalBlock.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80633 
							
						 
						
							2009-08-31 22:00:15 +00:00  
						
					 
				
					
						
							
							
								 
								Caroline Tice
							
						 
						
							 
							
							
							
							
								
							
							
								c87c1e2cfd 
								
							 
						 
						
							
							
								
								Add flag to mark structs for Apple Block "byref" variables; also add code to  
							
							 
							
							... 
							
							
							
							modify the type and location debug information for these variables to match the
programmer's expectations.
llvm-svn: 80625 
							
						 
						
							2009-08-31 21:19:37 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								9fda4bd998 
								
							 
						 
						
							
							
								
								Simplify isDerivedType() and other predicate interface.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80602 
							
						 
						
							2009-08-31 18:49:10 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								80ae34974b 
								
							 
						 
						
							
							
								
								Reapply 79977.  
							
							 
							
							... 
							
							
							
							Use MDNodes to encode debug info in llvm IR.
llvm-svn: 80406 
							
						 
						
							2009-08-28 23:24:31 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								3082c01d68 
								
							 
						 
						
							
							
								
								Closure is a very generic name. Use AppleBlock instead.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80307 
							
						 
						
							2009-08-27 23:51:51 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f08e35d9dc 
								
							 
						 
						
							
							
								
								Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80073 
							
						 
						
							2009-08-26 05:01:18 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a1b4dd96f2 
								
							 
						 
						
							
							
								
								Add isClosure() predicate. This is used to add DW_AT_APPLE_block attribute.  
							
							 
							
							... 
							
							
							
							Patch by Caroline Tice.
llvm-svn: 80061 
							
						 
						
							2009-08-26 00:39:50 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								02aac922b4 
								
							 
						 
						
							
							
								
								Update DebugInfo interface to use metadata, instead of special named llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well.  
							
							 
							
							... 
							
							
							
							This change speeds up llvm-gcc by more then 6% at "-O0 -g" (measured by compiling InstructionCombining.cpp!)
llvm-svn: 79977 
							
						 
						
							2009-08-25 05:24:07 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								06fa176862 
								
							 
						 
						
							
							
								
								prune the #includes in raw_ostream.h by moving a  
							
							 
							
							... 
							
							
							
							member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.
llvm-svn: 79885 
							
						 
						
							2009-08-24 03:52:50 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c521f54198 
								
							 
						 
						
							
							
								
								Prune #includes from llvm/Linker.h and llvm/System/Path.h,  
							
							 
							
							... 
							
							
							
							forcing them down into various .cpp files.
This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
   for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
   clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
   instead.
4. Weans llvm-db off <iostream>
sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.
llvm-svn: 79869 
							
						 
						
							2009-08-23 22:45:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								81e8e02e2f 
								
							 
						 
						
							
							
								
								remove some random indentation stuff, yay for efficiency.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79797 
							
						 
						
							2009-08-23 00:51:00 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e9a75a6654 
								
							 
						 
						
							
							
								
								rename TAI -> MAI, being careful not to make MAILJMP instructions :)  
							
							 
							
							... 
							
							
							
							llvm-svn: 79777 
							
						 
						
							2009-08-22 21:43:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7b26fce23e 
								
							 
						 
						
							
							
								
								Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79763 
							
						 
						
							2009-08-22 20:48:53 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								0939595711 
								
							 
						 
						
							
							
								
								Record variable debug info at ISel time directly.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79742 
							
						 
						
							2009-08-22 17:12:53 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								829b3e8b14 
								
							 
						 
						
							
							
								
								Add missing includes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79473 
							
						 
						
							2009-08-19 21:52:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4b7dadb76e 
								
							 
						 
						
							
							
								
								eliminate AsmPrinter::SwitchToSection and just have clients  
							
							 
							
							... 
							
							
							
							talk to the MCStreamer directly instead.
llvm-svn: 79405 
							
						 
						
							2009-08-19 05:49:37 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f691df3536 
								
							 
						 
						
							
							
								
								Do not completely skip subrange info for a zero sized array.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79044 
							
						 
						
							2009-08-14 20:59:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								591105c540 
								
							 
						 
						
							
							
								
								sink the 'name' and 'isdirective' state out of MCSection into its derived classes.  
							
							 
							
							... 
							
							
							
							This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-)
llvm-svn: 78517 
							
						 
						
							2009-08-08 23:39:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8ce12538c1 
								
							 
						 
						
							
							
								
								eliminate CurrentSection, rename CurrentSection_ -> CurrentSection, make it private,  
							
							 
							
							... 
							
							
							
							eliminate IsInTextSection.
llvm-svn: 78017 
							
						 
						
							2009-08-03 23:20:21 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1472cf5b3f 
								
							 
						 
						
							
							
								
								move dwarf debug info section selection stuff from TAI to  
							
							 
							
							... 
							
							
							
							TLOF, unifying all the dwarf targets at the same time.
llvm-svn: 77889 
							
						 
						
							2009-08-02 07:24:22 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4d2c0f9008 
								
							 
						 
						
							
							
								
								switch off of 'Section' onto MCSection.  We're not properly using  
							
							 
							
							... 
							
							
							
							MCSection subclasses yet, but this is a step in the right direction.
llvm-svn: 77708 
							
						 
						
							2009-07-31 18:48:30 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								6352444635 
								
							 
						 
						
							
							
								
								Start using DebugInfoFinder.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77621 
							
						 
						
							2009-07-30 18:56:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5e693ed07b 
								
							 
						 
						
							
							
								
								Rip all of the global variable lowering logic out of TargetAsmInfo.  Since  
							
							 
							
							... 
							
							
							
							it is highly specific to the object file that will be generated in the end,
this introduces a new TargetLoweringObjectFile interface that is implemented
for each of ELF/MachO/COFF/Alpha/PIC16 and XCore.
Though still is still a brutal and ugly refactoring, this is a major step
towards goodness.
This patch also:
1. fixes a bunch of dangling pointer problems in the PIC16 backend.
2. disables the TargetLowering copy ctor which PIC16 was accidentally using.
3. gets us closer to xcore having its own crazy target section flags and
   pic16 not having to shadow sections with its own objects.
4. fixes wierdness where ELF targets would set CStringSection but not
   CStringSection_.  Factor the code better.
5. fixes some bugs in string lowering on ELF targets.
llvm-svn: 77294 
							
						 
						
							2009-07-28 03:13:23 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								6115b39ffd 
								
							 
						 
						
							
							
								
								Remove Value::getName{Start,End}, the last of the old Name APIs.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77152 
							
						 
						
							2009-07-26 09:48:23 +00:00