Bob Wilson 
							
						 
					 
					
						
						
							
						
						cfc55c2fc9 
					 
					
						
						
							
							Some revisions to Devang's change r136759 for merged global debug info.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136802  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-08-03 19:42:51 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						027cbf9329 
					 
					
						
						
							
							Use byte offset, instead of element number, to access merged global.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136759  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-08-03 01:25:46 +00:00 
						 
				 
			
				
					
						
							
							
								Nick Lewycky 
							
						 
					 
					
						
						
							
						
						3bbb6f79b7 
					 
					
						
						
							
							Fix a lot of typos, improve (but not necessarily fix) grammaros and reflow some  
						
						... 
						
						
						
						lines. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136458  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-29 03:49:23 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						0748f83d37 
					 
					
						
						
							
							Remove outdated FIXME comment.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136275  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-27 22:00:01 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						26a92003cd 
					 
					
						
						
							
							It is quiet possible that inlined function body is split into multiple chunks of consequtive instructions. But, there is not any way to describe this in .debug_inline accelerator table used by gdb. However, describe non contiguous ranges of inlined function body appropriately using AT_range of DW_TAG_inlined_subroutine debug info entry.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136196  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-27 00:34:13 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						a671a3092a 
					 
					
						
						
							
							While extracting lexical scopes from machine instruction stream, work on one machine basic block at a time.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136106  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-26 18:09:53 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						3737b89098 
					 
					
						
						
							
							Refactor.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135633  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-20 23:00:27 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						40c7e4142e 
					 
					
						
						
							
							There are two ways to map a variable to its lexical scope. Lexical scope information is embedded in MDNode describing the variable. It is also available as a part of DebugLoc attached with DBG_VALUE instruction. DebugLoc attached with an instruction is less reliable in optimized code so use information embedded in the MDNode.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135629  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-20 22:18:50 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						c8fcfc9cd9 
					 
					
						
						
							
							Distinguish between two copies of one inlined variable.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135528  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-19 22:31:15 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						133b09953c 
					 
					
						
						
							
							Use DebugLoc directly to map inlined functions' instructions to respective lexical scope.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135302  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-15 21:25:44 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						1e479fb5c1 
					 
					
						
						
							
							Eliminate redundant map.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135278  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-15 16:38:42 +00:00 
						 
				 
			
				
					
						
							
							
								Evan Cheng 
							
						 
					 
					
						
						
							
						
						a83bba46b3 
					 
					
						
						
							
							Reverting r135232. It's causing infinite looping in DbgScope::openInsnRange.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135254  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-15 06:26:35 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						0bf164605d 
					 
					
						
						
							
							Do not get confused by multiple empty lexical scopes inlined at one location.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135232  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-15 00:30:39 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						9b4a172ac0 
					 
					
						
						
							
							Refactor.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135212  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-14 23:17:49 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						4f455d6f25 
					 
					
						
						
							
							Eliminate redundant LLVMContext argument.  
						
						... 
						
						
						
						Improve DbgScope->dump() output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135207  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-14 22:30:56 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						49c19f778b 
					 
					
						
						
							
							Simplify.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135127  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-14 01:52:45 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						d77ec6208c 
					 
					
						
						
							
							Simplify and delay extracting DebugLoc elements, scope and InlinedAt, as much as possible.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135124  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-14 01:14:57 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						0cd0c248cc 
					 
					
						
						
							
							Simplify. Compile unit check inside hasValidLocation() did not add any value.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135118  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-14 00:20:24 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						0f16a4eecc 
					 
					
						
						
							
							Fix typo in DEBUG message.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135111  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-14 00:04:53 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						5fc0d886da 
					 
					
						
						
							
							Add DEBUG messages.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135110  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-14 00:03:58 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						90b40414a0 
					 
					
						
						
							
							Refactor.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134703  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-08 17:09:57 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						80efd4e96b 
					 
					
						
						
							
							Make provision to have floating point constants in .debug_loc expressions.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134702  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-08 16:49:43 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						476df5f64f 
					 
					
						
						
							
							Add DEBUG message.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134643  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-07 21:44:42 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						7986289a9c 
					 
					
						
						
							
							Add DEBUG messages.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134572  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-07 00:14:27 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						90369eb209 
					 
					
						
						
							
							Remove dead code.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134561  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-07-06 23:26:18 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						8594d429e0 
					 
					
						
						
							
							Handle debug info for  i128 constants.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133821  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-06-24 20:46:11 +00:00 
						 
				 
			
				
					
						
							
							
								Benjamin Kramer 
							
						 
					 
					
						
						
							
						
						ab5f788f67 
					 
					
						
						
							
							Use path API for path concatenation.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132668  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-06-05 14:36:47 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						4ada1d7910 
					 
					
						
						
							
							A DBG_VALUE that truncates a range does not start another dbg value range.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132433  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-06-01 23:00:17 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						c432907eca 
					 
					
						
						
							
							Do not drop constant values when a variable's content is described using .debug_loc entries.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132427  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-06-01 22:03:25 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						e9ae06ca98 
					 
					
						
						
							
							Include global types, that are referenced through local variables, in debug_pubtypes list.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132371  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-31 22:56:51 +00:00 
						 
				 
			
				
					
						
							
							
								Rafael Espindola 
							
						 
					 
					
						
						
							
						
						5b23b7fe31 
					 
					
						
						
							
							Make size computation less brittle.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132222  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-27 22:05:41 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						b58128e2b2 
					 
					
						
						
							
							Select DW_AT_const_value size based on variable size.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132193  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-27 16:45:18 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						a9b324be9c 
					 
					
						
						
							
							Fix debug info for blocks' variable.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131940  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-24 00:22:25 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						c481b70a6a 
					 
					
						
						
							
							Remove unnecessary comment.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131936  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-23 23:16:14 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						4243e67bd5 
					 
					
						
						
							
							Identify end of prologue (and beginning of function body) using DW_LNS_set_prologue_end line table opcode.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131194  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-11 19:22:19 +00:00 
						 
				 
			
				
					
						
							
							
								Rafael Espindola 
							
						 
					 
					
						
						
							
						
						dc52ecf6fd 
					 
					
						
						
							
							Rename DwarfRequiresRelocationForStmtList to  
						
						... 
						
						
						
						DwarfRequiresRelocationForSectionOffset as this is not specific to StmtList.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131148  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-10 20:35:05 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						a3f486762f 
					 
					
						
						
							
							Do not ignore InlinedAt while walking up scope chain to find subprogram node.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131106  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-09 22:14:49 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						31c5d05a26 
					 
					
						
						
							
							Move CompileUnit::getOrCreateNameSpace() and CompileUnit::addPubType() from DwarfDebug.cpp to DwarfCompileUnit.cpp  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130991  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-06 16:57:54 +00:00 
						 
				 
			
				
					
						
							
							
								Rafael Espindola 
							
						 
					 
					
						
						
							
						
						f2b0423200 
					 
					
						
						
							
							Dead code elimination.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130984  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-06 14:56:22 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						51a04adc5e 
					 
					
						
						
							
							Remove little used statistical counter.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130955  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-05 22:00:08 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						d96efb83c1 
					 
					
						
						
							
							If debug info for inlined function is missing then handle it gracefully.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130933  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-05 17:54:26 +00:00 
						 
				 
			
				
					
						
							
							
								Rafael Espindola 
							
						 
					 
					
						
						
							
						
						597a7664e1 
					 
					
						
						
							
							Producing a DW_FORM_addr for DW_AT_stmt_list is probably correct, but  
						
						... 
						
						
						
						it is both inefficient and unexpected by dwarfdump. Change to
a DW_FORM_data4.
While in here, change the predicate name to reflect that the position
is not really absolute (it is an offset), just that the linker needs a
relocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130846  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-04 17:44:06 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						a938dd0dc9 
					 
					
						
						
							
							Tighten up check for empty (i.e. no meaningful debug info) module. This fixes dwarf-die2.c test case from gcc test suite.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130842  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-04 16:34:02 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						ee4a3abede 
					 
					
						
						
							
							Even if the subprogram is going to use AT_specification, emit DW_AT_MIPS_linkage_name. This helps gdb and fixes var-path-expr.exp regression reported by gdb testsuite.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130794  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-03 21:50:34 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						30692abac7 
					 
					
						
						
							
							If the front end has emitted llvm.dbg.cu and other debug info anchors (clang does it now) then use them directly. This saves one scan of entire module, to collect debug info, which in turns saves few machine cycles at compile time.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130759  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-03 16:45:22 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						c455bb7dc7 
					 
					
						
						
							
							Emit debug info for global variables first.  
						
						... 
						
						
						
						This works around a limitation in gdb which is reported by following inherit.exp test failures from gdb testsuite.
gdb.cp/inherit.exp: print g_vB.vB::vb
gdb.cp/inherit.exp: print g_vB.vB::vx
gdb.cp/inherit.exp: print g_vC.vC::vc
gdb.cp/inherit.exp: print g_vC.vC::vx
gdb.cp/inherit.exp: print g_vD.vB::vb
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130702  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-05-02 18:19:17 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						c26f5447e3 
					 
					
						
						
							
							Teach dwarf writer to handle complex address expression for .debug_loc entries.  
						
						... 
						
						
						
						This fixes clang generated blocks' variables' debug info.
Radar 9279956.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130373  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-04-28 02:22:40 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						e1cdf84ee5 
					 
					
						
						
							
							Simplify handling of variables with complex address (i.e. blocks variables)  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130339  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-04-27 22:45:24 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						9341d10f94 
					 
					
						
						
							
							Rename a local variable.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130171  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-04-25 23:05:21 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						b865d46d95 
					 
					
						
						
							
							Rename a method to match what it really does.  
						
						... 
						
						
						
						s/addVariableAddress/addFrameVariableAddress/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130170  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-04-25 23:02:17 +00:00