62f2840572 
								
							 
						 
						
							
							
								
								fix some issues where we weren't emitting enough newlines.  
							
							... 
							
							
							
							llvm-svn: 94370 
							
						 
						
							2010-01-24 19:01:06 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								ac277eb930 
								
							 
						 
						
							
							
								
								Remove MetadataBase class because it is not adding significant value.  
							
							... 
							
							
							
							llvm-svn: 94243 
							
						 
						
							2010-01-22 22:52:10 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								f5c834fce1 
								
							 
						 
						
							
							
								
								inline away the trivial AsmPrinter::EOL() method.  
							
							... 
							
							
							
							llvm-svn: 94230 
							
						 
						
							2010-01-22 22:09:00 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								fe189e65d7 
								
							 
						 
						
							
							
								
								Revert accident check-in from r93165.  
							
							... 
							
							
							
							llvm-svn: 93832 
							
						 
						
							2010-01-19 01:26:02 +00:00  
				
					
						
							
							
								 
						
							
								4d128a2387 
								
							 
						 
						
							
							
								
								Switch some functions to take Twines, eliminate uses of StringExtras.h.  
							
							... 
							
							
							
							llvm-svn: 93680 
							
						 
						
							2010-01-17 07:46:39 +00:00  
				
					
						
							
							
								 
						
							
								f62e3ee8c5 
								
							 
						 
						
							
							
								
								move the mangler into libtarget from vmcore.  
							
							... 
							
							
							
							llvm-svn: 93664 
							
						 
						
							2010-01-16 21:57:06 +00:00  
				
					
						
							
							
								 
						
							
								06d45f6e75 
								
							 
						 
						
							
							
								
								Change DIEObjectLabel to take an MCSymbol instead of std::string.  
							
							... 
							
							
							
							llvm-svn: 93647 
							
						 
						
							2010-01-16 18:50:28 +00:00  
				
					
						
							
							
								 
						
							
								814b7e7488 
								
							 
						 
						
							
							
								
								No need to use WeakVH here.  
							
							... 
							
							
							
							llvm-svn: 93631 
							
						 
						
							2010-01-16 06:17:40 +00:00  
				
					
						
							
							
								 
						
							
								c0e17df3ce 
								
							 
						 
						
							
							
								
								Replace DebugLocTuple with DILocation.  
							
							... 
							
							
							
							llvm-svn: 93630 
							
						 
						
							2010-01-16 06:09:35 +00:00  
				
					
						
							
							
								 
						
							
								0633820599 
								
							 
						 
						
							
							
								
								Add FIXME.  
							
							... 
							
							
							
							llvm-svn: 93562 
							
						 
						
							2010-01-15 22:08:16 +00:00  
				
					
						
							
							
								 
						
							
								89880c8224 
								
							 
						 
						
							
							
								
								Do not use AT_specification die for static variables. It confuses gdb.  
							
							... 
							
							
							
							llvm-svn: 93494 
							
						 
						
							2010-01-15 01:12:22 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								8992323bb9 
								
							 
						 
						
							
							
								
								s/NextValueNo/NextMDValueNo while processing metadata.  
							
							... 
							
							
							
							llvm-svn: 93165 
							
						 
						
							2010-01-11 18:52:33 +00:00  
				
					
						
							
							
								 
						
							
								2b45998b7b 
								
							 
						 
						
							
							
								
								Kill dead store.  
							
							... 
							
							
							
							llvm-svn: 92920 
							
						 
						
							2010-01-07 17:50:57 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								43ef34d2a5 
								
							 
						 
						
							
							
								
								Use StringRef.startswith().  
							
							... 
							
							
							
							llvm-svn: 92671 
							
						 
						
							2010-01-05 01:46:14 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								530a075f17 
								
							 
						 
						
							
							
								
								Fix begin and end markers for nested scopes.  
							
							... 
							
							
							
							llvm-svn: 92505 
							
						 
						
							2010-01-04 20:44:00 +00:00  
				
					
						
							
							
								 
						
							
								f81add3fdf 
								
							 
						 
						
							
							
								
								move these out of their own timer groups into the 'uncategorized' groups.  
							
							... 
							
							
							
							llvm-svn: 92206 
							
						 
						
							2009-12-28 07:41:18 +00:00  
				
					
						
							
							
								 
						
							
								c230cb947a 
								
							 
						 
						
							
							
								
								Change errs() to dbgs().  
							
							... 
							
							
							
							llvm-svn: 92096 
							
						 
						
							2009-12-24 00:31:35 +00:00  
				
					
						
							
							
								 
						
							
								1f4690c624 
								
							 
						 
						
							
							
								
								Add support to emit debug info for C++ namespaces.  
							
							... 
							
							
							
							llvm-svn: 91440 
							
						 
						
							2009-12-15 19:16:48 +00:00  
				
					
						
							
							
								 
						
							
								525dda05a0 
								
							 
						 
						
							
							
								
								Use DW_AT_specification to point to DIE describing function declaration.  
							
							... 
							
							
							
							llvm-svn: 91278 
							
						 
						
							2009-12-14 16:18:45 +00:00  
				
					
						
							
							
								 
						
							
								b314bd688a 
								
							 
						 
						
							
							
								
								Construct CompileUnits lazily.  
							
							... 
							
							
							
							llvm-svn: 91159 
							
						 
						
							2009-12-11 21:37:07 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								b5b60ea4f9 
								
							 
						 
						
							
							
								
								Refactor.  
							
							... 
							
							
							
							llvm-svn: 91051 
							
						 
						
							2009-12-10 18:05:33 +00:00  
				
					
						
							
							
								 
						
							
								9ccfb641d1 
								
							 
						 
						
							
							
								
								Reapply r90858, a cleanup patch.  
							
							... 
							
							
							
							llvm-svn: 90979 
							
						 
						
							2009-12-09 18:24:21 +00:00  
				
					
						
							
							
								 
						
							
								512001ac7d 
								
							 
						 
						
							
							
								
								Revert 90858 90875 and 90805 for now.  
							
							... 
							
							
							
							llvm-svn: 90898 
							
						 
						
							2009-12-08 23:21:45 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								b074d1783b 
								
							 
						 
						
							
							
								
								Add support to emit debug info for c++ style namespaces.  
							
							... 
							
							
							
							llvm-svn: 90805 
							
						 
						
							2009-12-07 21:41:32 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								8f0460278c 
								
							 
						 
						
							
							
								
								In TAG_subrange_type, uppder bound is zero indexed.  
							
							... 
							
							
							
							llvm-svn: 90617 
							
						 
						
							2009-12-04 23:10:24 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								8c33959df2 
								
							 
						 
						
							
							
								
								Clarify that DIEString does not keep a copy of the string.  
							
							... 
							
							
							
							llvm-svn: 90318 
							
						 
						
							2009-12-02 15:25:16 +00:00  
				
					
						
							
							
								 
						
							
								a605b9124a 
								
							 
						 
						
							
							
								
								Reuse existing subprogram DIE.  
							
							... 
							
							
							
							llvm-svn: 90281 
							
						 
						
							2009-12-01 23:07:59 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								ae466efe2e 
								
							 
						 
						
							
							
								
								If pointer type has a name then do not ignore the name.  
							
							... 
							
							
							
							llvm-svn: 90172 
							
						 
						
							2009-11-30 23:56:56 +00:00  
				
					
						
							
							
								 
						
							
								4cd30817d3 
								
							 
						 
						
							
							
								
								Avoid some possibly unsafe uses of StringRef::data().  
							
							... 
							
							
							
							llvm-svn: 89873 
							
						 
						
							2009-11-25 18:26:09 +00:00  
				
					
						
							
							
								 
						
							
								2d9caf9fe5 
								
							 
						 
						
							
							
								
								Use StringRef (again) in DebugInfo interface.  
							
							... 
							
							
							
							llvm-svn: 89866 
							
						 
						
							2009-11-25 17:36:49 +00:00  
				
					
						
							
							
								 
						
							
								b3e0168428 
								
							 
						 
						
							
							
								
								Use StringRef instead of std::string in DIEString.  
							
							... 
							
							
							
							llvm-svn: 89793 
							
						 
						
							2009-11-24 19:42:17 +00:00  
				
					
						
							
							
								 
						
							
								c8654eb64e 
								
							 
						 
						
							
							
								
								Swith to pubtypes section before emitting pub types.  
							
							... 
							
							
							
							llvm-svn: 89787 
							
						 
						
							2009-11-24 19:18:41 +00:00  
				
					
						
							
							
								 
						
							
								04d2f2d192 
								
							 
						 
						
							
							
								
								Emit pubtypes.  
							
							... 
							
							
							
							llvm-svn: 89725 
							
						 
						
							2009-11-24 01:14:22 +00:00  
				
					
						
							
							
								 
						
							
								3650f4ed0c 
								
							 
						 
						
							
							
								
								Simplify this code.  
							
							... 
							
							
							
							llvm-svn: 89702 
							
						 
						
							2009-11-23 21:30:55 +00:00  
				
					
						
							
							
								 
						
							
								b5b51598ba 
								
							 
						 
						
							
							
								
								Revert r89487.  
							
							... 
							
							
							
							llvm-svn: 89686 
							
						 
						
							2009-11-23 18:43:37 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								00e9c6103b 
								
							 
						 
						
							
							
								
								80-column cleanup  
							
							... 
							
							
							
							llvm-svn: 89612 
							
						 
						
							2009-11-22 19:20:36 +00:00  
				
					
						
							
							
								 
						
							
								042483efb1 
								
							 
						 
						
							
							
								
								remove trailing whitespace  
							
							... 
							
							
							
							llvm-svn: 89567 
							
						 
						
							2009-11-21 23:12:12 +00:00  
				
					
						
							
							
								 
						
							
								930143b0dc 
								
							 
						 
						
							
							
								
								Cosmetic changes, which were long overdue, in DwarfDebug.cpp.  
							
							... 
							
							
							
							llvm-svn: 89537 
							
						 
						
							2009-11-21 02:48:08 +00:00  
				
					
						
							
							
								 
						
							
								e1bbc33355 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							... 
							
							
							
							llvm-svn: 89522 
							
						 
						
							2009-11-21 00:54:03 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								a1c09d674e 
								
							 
						 
						
							
							
								
								Remove VISIBILITY_HIDDEN from the classes in this directory. Fixes bug 5507.  
							
							... 
							
							
							
							llvm-svn: 89075 
							
						 
						
							2009-11-17 09:17:08 +00:00  
				
					
						
							
							
								 
						
							
								b7993d61f2 
								
							 
						 
						
							
							
								
								Revert r88939.  
							
							... 
							
							
							
							llvm-svn: 89066 
							
						 
						
							2009-11-17 08:11:44 +00:00  
				
					
						
							
							
								 
						
							
								f3d7c08e34 
								
							 
						 
						
							
							
								
								Revert r88939.  
							
							... 
							
							
							
							llvm-svn: 88973 
							
						 
						
							2009-11-16 21:53:40 +00:00  
				
					
						
							
							
								 
						
							
								2ffd9935a1 
								
							 
						 
						
							
							
								
								Add VISIBILITY_HIDDEN marker.  
							
							... 
							
							
							
							llvm-svn: 88939 
							
						 
						
							2009-11-16 19:20:48 +00:00  
				
					
						
							
							
								 
						
							
								97f99fa554 
								
							 
						 
						
							
							
								
								Ignore nameless variables.  
							
							... 
							
							
							
							llvm-svn: 87069 
							
						 
						
							2009-11-13 02:25:26 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								75b4d3562c 
								
							 
						 
						
							
							
								
								Fix -Asserts warning.  
							
							... 
							
							
							
							llvm-svn: 86794 
							
						 
						
							2009-11-11 03:09:50 +00:00  
				
					
						
							
							
								 
						
							
								78319c67ca 
								
							 
						 
						
							
							
								
								Do not assume first function scope seen represents current function.  
							
							... 
							
							
							
							llvm-svn: 86771 
							
						 
						
							2009-11-11 00:31:36 +00:00  
				
					
						
							
							
								 
						
							
								4450f26621 
								
							 
						 
						
							
							
								
								While creating DbgScopes, do not forget parent scope.  
							
							... 
							
							
							
							llvm-svn: 86763 
							
						 
						
							2009-11-11 00:18:40 +00:00  
				
					
						
							
							
								 
						
							
								cdb7d44d6d 
								
							 
						 
						
							
							
								
								Ignore variable if scope info is not available.  
							
							... 
							
							
							
							llvm-svn: 86753 
							
						 
						
							2009-11-10 23:20:04 +00:00  
				
					
						
							
							
								 
						
							
								f6eeaebd76 
								
							 
						 
						
							
							
								
								Implement support to debug inlined functions.  
							
							... 
							
							
							
							llvm-svn: 86748 
							
						 
						
							2009-11-10 23:06:00 +00:00  
				
					
						
							
							
								 
						
							
								cc11371b77 
								
							 
						 
						
							
							
								
								Do not bother to emit debug info for nameless global variable.  
							
							... 
							
							
							
							llvm-svn: 86259 
							
						 
						
							2009-11-06 17:58:12 +00:00  
				
					
						
							
							
								 
						
							
								06ce6506d2 
								
							 
						 
						
							
							
								
								Do not try to emit debug info entry for dead global variable.  
							
							... 
							
							
							
							llvm-svn: 86212 
							
						 
						
							2009-11-06 01:30:04 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								ffa7c07352 
								
							 
						 
						
							
							
								
								Ignore unnamed variables.  
							
							... 
							
							
							
							llvm-svn: 85909 
							
						 
						
							2009-11-03 18:30:27 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								12524fd2e5 
								
							 
						 
						
							
							
								
								Do not emit name entry for a pointer type.  
							
							... 
							
							
							
							llvm-svn: 84276 
							
						 
						
							2009-10-16 21:27:43 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								6875c5ebe4 
								
							 
						 
						
							
							
								
								Add support to record DbgScope as inlined scope.  
							
							... 
							
							
							
							llvm-svn: 84134 
							
						 
						
							2009-10-14 21:08:09 +00:00  
				
					
						
							
							
								 
						
							
								d7ebfe3963 
								
							 
						 
						
							
							
								
								s/DebugLoc.CompileUnit/DebugLoc.Scope/g  
							
							... 
							
							
							
							s/DebugLoc.InlinedLoc/DebugLoc.InlinedAtLoc/g
llvm-svn: 84054 
							
						 
						
							2009-10-13 23:28:53 +00:00  
				
					
						
							
							
								 
						
							
								cdf01b5d82 
								
							 
						 
						
							
							
								
								Fix a -Asserts warning.  
							
							... 
							
							
							
							llvm-svn: 83950 
							
						 
						
							2009-10-13 06:47:08 +00:00  
				
					
						
							
							
								 
						
							
								0f58bec599 
								
							 
						 
						
							
							
								
								Find enclosing subprogram info.  
							
							... 
							
							
							
							llvm-svn: 83922 
							
						 
						
							2009-10-12 23:11:24 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								7d838bb66e 
								
							 
						 
						
							
							
								
								Fix cut-n-pasto.  
							
							... 
							
							
							
							llvm-svn: 83367 
							
						 
						
							2009-10-06 03:15:38 +00:00  
				
					
						
							
							
								 
						
							
								2980a22028 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							... 
							
							
							
							llvm-svn: 83362 
							
						 
						
							2009-10-06 02:01:32 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								4144a82154 
								
							 
						 
						
							
							
								
								Set address while constructing DIE.  
							
							... 
							
							
							
							llvm-svn: 83343 
							
						 
						
							2009-10-05 23:22:08 +00:00  
				
					
						
							
							
								 
						
							
								2089d16140 
								
							 
						 
						
							
							
								
								Gracefully handle various scopes while recording source line info.  
							
							... 
							
							
							
							llvm-svn: 83317 
							
						 
						
							2009-10-05 18:03:19 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								787f94c28d 
								
							 
						 
						
							
							
								
								Record first and last instruction of a scope in DbgScope.  
							
							... 
							
							
							
							llvm-svn: 83207 
							
						 
						
							2009-10-01 18:25:23 +00:00  
				
					
						
							
							
								 
						
							
								3256c751f5 
								
							 
						 
						
							
							
								
								Use MDNode * directly as an RecordSourceLine() argument.  
							
							... 
							
							
							
							llvm-svn: 83182 
							
						 
						
							2009-09-30 22:51:28 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								b296942f6d 
								
							 
						 
						
							
							
								
								Remove std::string uses from DebugInfo interface.  
							
							... 
							
							
							
							llvm-svn: 83083 
							
						 
						
							2009-09-29 18:40:58 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								d6f9a2f90b 
								
							 
						 
						
							
							
								
								Fix spacing.  
							
							... 
							
							
							
							llvm-svn: 82727 
							
						 
						
							2009-09-24 23:11:08 +00:00  
				
					
						
							
							
								 
						
							
								8808063181 
								
							 
						 
						
							
							
								
								This is overly constraining with respect to clang.  
							
							... 
							
							
							
							llvm-svn: 82591 
							
						 
						
							2009-09-23 00:13:30 +00:00  
				
					
						
							
							
								 
						
							
								be22ec4cfc 
								
							 
						 
						
							
							
								
								Fix indentation.  
							
							... 
							
							
							
							llvm-svn: 82333 
							
						 
						
							2009-09-19 20:40:14 +00:00  
				
					
						
							
							
								 
						
							
								c418d6b106 
								
							 
						 
						
							
							
								
								Strip trailing whitespace.  
							
							... 
							
							
							
							llvm-svn: 82332 
							
						 
						
							2009-09-19 20:40:05 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								183a519771 
								
							 
						 
						
							
							
								
								Don't generate Dwarf line table entries for source line 0.  
							
							... 
							
							
							
							llvm-svn: 81542 
							
						 
						
							2009-09-11 18:25:54 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								f5d5360065 
								
							 
						 
						
							
							
								
								Ignore malformed global variable debug info.  
							
							... 
							
							
							
							llvm-svn: 81055 
							
						 
						
							2009-09-04 23:59:07 +00:00  
				
					
						
							
							
								 
						
							
								b2de5fa689 
								
							 
						 
						
							
							
								
								Subprogram is a scope. Derive DISubprogram from DIScope.  
							
							... 
							
							
							
							llvm-svn: 80637 
							
						 
						
							2009-08-31 22:47:13 +00:00  
				
					
						
							
							
								 
						
							
								869529c58c 
								
							 
						 
						
							
							
								
								Rename DIBlock as DILexicalBlock.  
							
							... 
							
							
							
							llvm-svn: 80633 
							
						 
						
							2009-08-31 22:00:15 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								9fda4bd998 
								
							 
						 
						
							
							
								
								Simplify isDerivedType() and other predicate interface.  
							
							... 
							
							
							
							llvm-svn: 80602 
							
						 
						
							2009-08-31 18:49:10 +00:00  
				
					
						
							
							
								 
						
							
								80ae34974b 
								
							 
						 
						
							
							
								
								Reapply 79977.  
							
							... 
							
							
							
							Use MDNodes to encode debug info in llvm IR.
llvm-svn: 80406 
							
						 
						
							2009-08-28 23:24:31 +00:00  
				
					
						
							
							
								 
						
							
								3082c01d68 
								
							 
						 
						
							
							
								
								Closure is a very generic name. Use AppleBlock instead.  
							
							... 
							
							
							
							llvm-svn: 80307 
							
						 
						
							2009-08-27 23:51:51 +00:00  
				
					
						
							
							
								 
						
							
								f08e35d9dc 
								
							 
						 
						
							
							
								
								Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.  
							
							... 
							
							
							
							llvm-svn: 80073 
							
						 
						
							2009-08-26 05:01:18 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								81e8e02e2f 
								
							 
						 
						
							
							
								
								remove some random indentation stuff, yay for efficiency.  
							
							... 
							
							
							
							llvm-svn: 79797 
							
						 
						
							2009-08-23 00:51:00 +00:00  
				
					
						
							
							
								 
						
							
								e9a75a6654 
								
							 
						 
						
							
							
								
								rename TAI -> MAI, being careful not to make MAILJMP instructions :)  
							
							... 
							
							
							
							llvm-svn: 79777 
							
						 
						
							2009-08-22 21:43:10 +00:00  
				
					
						
							
							
								 
						
							
								7b26fce23e 
								
							 
						 
						
							
							
								
								Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.  
							
							... 
							
							
							
							llvm-svn: 79763 
							
						 
						
							2009-08-22 20:48:53 +00:00  
				
					
						
							
							
								 
						
							
								0939595711 
								
							 
						 
						
							
							
								
								Record variable debug info at ISel time directly.  
							
							... 
							
							
							
							llvm-svn: 79742 
							
						 
						
							2009-08-22 17:12:53 +00:00  
				
					
						
							
							
								 
						
							
								829b3e8b14 
								
							 
						 
						
							
							
								
								Add missing includes.  
							
							... 
							
							
							
							llvm-svn: 79473 
							
						 
						
							2009-08-19 21:52:55 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								f691df3536 
								
							 
						 
						
							
							
								
								Do not completely skip subrange info for a zero sized array.  
							
							... 
							
							
							
							llvm-svn: 79044 
							
						 
						
							2009-08-14 20:59:16 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								8ce12538c1 
								
							 
						 
						
							
							
								
								eliminate CurrentSection, rename CurrentSection_ -> CurrentSection, make it private,  
							
							... 
							
							
							
							eliminate IsInTextSection.
llvm-svn: 78017 
							
						 
						
							2009-08-03 23:20:21 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								6352444635 
								
							 
						 
						
							
							
								
								Start using DebugInfoFinder.  
							
							... 
							
							
							
							llvm-svn: 77621 
							
						 
						
							2009-07-30 18:56:46 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								6115b39ffd 
								
							 
						 
						
							
							
								
								Remove Value::getName{Start,End}, the last of the old Name APIs.  
							
							... 
							
							
							
							llvm-svn: 77152 
							
						 
						
							2009-07-26 09:48:23 +00:00  
				
					
						
							
							
								 
						
							
								f281bf803e 
								
							 
						 
						
							
							
								
								Skip special LLVM prefix '1' while emitting linknage name.  
							
							... 
							
							
							
							This prefix is used by LLVM to inform the asm printer to not emit usual global symbol prefix before the symbol name.
llvm-svn: 75875 
							
						 
						
							2009-07-16 01:01:22 +00:00  
				
					
						
							
							
								 
						
							
								f34815b32f 
								
							 
						 
						
							
							
								
								Change the internal interface to makeNameProper to take a bool that  
							
							... 
							
							
							
							indicates whether the label is private or not, instead of taking
prefix stuff.  One effect of this is that symbols will be generated
with *just* the private prefix, instead of both the private prefix
*and* the user-label-prefix, but this doesn't matter as long as it
is consistent.  For example we'll now get "Lfoo" instead of "L_foo".
These are just assembler temporary labels anyway, so they never even
make it into the .o file.
llvm-svn: 75607 
							
						 
						
							2009-07-14 04:50:12 +00:00  
				
					
						
							
							
								 
						
							
								cdfc858ec0 
								
							 
						 
						
							
							
								
								Do not use Mangler to remove '1' from linkage name.  
							
							... 
							
							
							
							llvm-svn: 75574 
							
						 
						
							2009-07-14 00:55:28 +00:00  
				
					
						
							
							
								 
						
							
								9efced9817 
								
							 
						 
						
							
							
								
								Use assertion.  
							
							... 
							
							
							
							llvm-svn: 75540 
							
						 
						
							2009-07-13 22:46:19 +00:00  
				
					
						
							
							
								 
						
							
								9d582d1782 
								
							 
						 
						
							
							
								
								Use AsmPrinter's Mangler to remove leading '1' from linkage names.  
							
							... 
							
							
							
							llvm-svn: 75515 
							
						 
						
							2009-07-13 21:48:26 +00:00  
				
					
						
							
							
								 
						
							
								b4c9579e69 
								
							 
						 
						
							
							
								
								revert rev. 75503 for now.  
							
							... 
							
							
							
							llvm-svn: 75507 
							
						 
						
							2009-07-13 21:26:33 +00:00  
				
					
						
							
							
								 
						
							
								31b3d7b53f 
								
							 
						 
						
							
							
								
								Use Mangler to remove leading '1' from linkage names.  
							
							... 
							
							
							
							llvm-svn: 75503 
							
						 
						
							2009-07-13 21:19:56 +00:00  
				
					
						
							
							
								 
						
							
								14fd73b08d 
								
							 
						 
						
							
							
								
								Accidently dropped this while removing dead code in previous commit.  
							
							... 
							
							
							
							llvm-svn: 74953 
							
						 
						
							2009-07-07 21:55:14 +00:00  
				
					
						
							
							
								 
						
							
								270d747359 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							... 
							
							
							
							llvm-svn: 74949 
							
						 
						
							2009-07-07 21:12:32 +00:00  
				
					
						
							
							
								 
						
							
								0a9f9759a3 
								
							 
						 
						
							
							
								
								Struct types are described using field types only.  
							
							... 
							
							
							
							llvm-svn: 74477 
							
						 
						
							2009-06-29 23:46:50 +00:00  
				
					
						
							
							
								 
						
							
								40d784180b 
								
							 
						 
						
							
							
								
								s/MainCU/ModuleCU/g  
							
							... 
							
							
							
							llvm-svn: 74452 
							
						 
						
							2009-06-29 20:45:18 +00:00  
				
					
						
							
							
								 
						
							
								8635345d8a 
								
							 
						 
						
							
							
								
								Multiple DW_TAG_compile_unit is not used, afaict, on any target.  
							
							... 
							
							
							
							Update dwarf writer to only emit one DW_TAG_compile_unit per .o file. 
llvm-svn: 74449 
							
						 
						
							2009-06-29 20:38:13 +00:00  
				
					
						
							
							
								 
						
							
								0751a28888 
								
							 
						 
						
							
							
								
								Remove debug info anchors - llvm.dbg.compile_units, llvm.dbg.subprograms  
							
							... 
							
							
							
							and llvm.dbg.global_variables.
llvm-svn: 74251 
							
						 
						
							2009-06-26 01:49:18 +00:00  
				
					
						
							
							
								 
						
							
								0c044ecdb0 
								
							 
						 
						
							
							
								
								Simplify.  
							
							... 
							
							
							
							llvm-svn: 74215 
							
						 
						
							2009-06-25 22:36:02 +00:00  
				
					
						
							
							
								 
						
							
								9becc183e1 
								
							 
						 
						
							
							
								
								Down with statics!  
							
							... 
							
							
							
							llvm-svn: 74134 
							
						 
						
							2009-06-24 22:53:20 +00:00  
				
					
						
							
							
								 
						
							
								09081b25a5 
								
							 
						 
						
							
							
								
								simplify macro debug info directive handling.  
							
							... 
							
							
							
							llvm-svn: 73736 
							
						 
						
							2009-06-18 23:31:37 +00:00  
				
					
						
							
							
								 
						
							
								14491abe48 
								
							 
						 
						
							
							
								
								Use MainCU if it is available.  
							
							... 
							
							
							
							llvm-svn: 73457 
							
						 
						
							2009-06-16 02:09:30 +00:00  
				
					
						
							
							
								 
						
							
								56e6fe1642 
								
							 
						 
						
							
							
								
								Gracefully handle imbalanced inline function begin and end markers.  
							
							... 
							
							
							
							llvm-svn: 73426 
							
						 
						
							2009-06-15 21:45:50 +00:00  
				
					
						
							
							
								 
						
							
								64e6529e76 
								
							 
						 
						
							
							
								
								llvm.dbg.region.end() intrinsic is not required to be in _last_ basic block in a function.  If that happens then any basic block that follows (lexically) the block with regin.end will not have scope info available.  LexicalScopeStack relies on processing basic block in CFG order, but this processing order is not guaranteed. Things get complicated when the optimizer gets a chance to optimizer IR with dbg intrinsics.  
							
							... 
							
							
							
							Apply defensive patch to preserve at least one lexical scope till the end of function.
llvm-svn: 73282 
							
						 
						
							2009-06-13 02:16:18 +00:00  
				
					
						
							
							
								 
						
							
								c1fee72162 
								
							 
						 
						
							
							
								
								Clear AbstractInstanceRootMap at the end of the function.  
							
							... 
							
							
							
							llvm-svn: 73244 
							
						 
						
							2009-06-12 19:24:05 +00:00  
				
					
						
							
							
								 
						
							
								d9ef48a73e 
								
							 
						 
						
							
							
								
								Remove some unnecessary #includes.  
							
							... 
							
							
							
							llvm-svn: 72948 
							
						 
						
							2009-06-05 16:32:58 +00:00  
				
					
						
							
							
								 
						
							
								5ea3e9db43 
								
							 
						 
						
							
							
								
								Accidental commit. This isn't ready for prime time just yet.  
							
							... 
							
							
							
							llvm-svn: 72699 
							
						 
						
							2009-06-01 20:18:46 +00:00  
				
					
						
							
							
								 
						
							
								09f17a8479 
								
							 
						 
						
							
							
								
								Untabification.  
							
							... 
							
							
							
							llvm-svn: 72604 
							
						 
						
							2009-05-30 01:09:53 +00:00  
				
					
						
							
							
								 
						
							
								8658bb565d 
								
							 
						 
						
							
							
								
								Minor code cleanup. No functionality change.  
							
							... 
							
							
							
							llvm-svn: 72198 
							
						 
						
							2009-05-20 23:31:45 +00:00  
				
					
						
							
							
								 
						
							
								744668d5af 
								
							 
						 
						
							
							
								
								Merge 'ConstructFunctionDbgScope' and 'ConstructAbstractDbgScope'.  
							
							... 
							
							
							
							llvm-svn: 72197 
							
						 
						
							2009-05-20 23:28:48 +00:00  
				
					
						
							
							
								 
						
							
								bcad77a8d5 
								
							 
						 
						
							
							
								
								Rename 'New*' methods to 'Create*' to be consistent. 'NewString' isn't used.  
							
							... 
							
							
							
							llvm-svn: 72196 
							
						 
						
							2009-05-20 23:24:48 +00:00  
				
					
						
							
							
								 
						
							
								806535f908 
								
							 
						 
						
							
							
								
								Add comment for emit section.  
							
							... 
							
							
							
							llvm-svn: 72195 
							
						 
						
							2009-05-20 23:22:40 +00:00  
				
					
						
							
							
								 
						
							
								480ff32120 
								
							 
						 
						
							
							
								
								Move 'Emit' methods down to their own place.  
							
							... 
							
							
							
							llvm-svn: 72194 
							
						 
						
							2009-05-20 23:21:38 +00:00  
				
					
						
							
							
								 
						
							
								2b128d70c5 
								
							 
						 
						
							
							
								
								Revert r72192. It was causing a build failure.  
							
							... 
							
							
							
							llvm-svn: 72193 
							
						 
						
							2009-05-20 23:19:06 +00:00  
				
					
						
							
							
								 
						
							
								8d7533d3e5 
								
							 
						 
						
							
							
								
								Do some mechanical changes. Combine the 'construct abastract dbg thingy' in with  
							
							... 
							
							
							
							the 'constract function dbg thingy'. Rename some methods to make them consistent
with the rest of the methods. Move the 'Emit' methods to the end of the file.
llvm-svn: 72192 
							
						 
						
							2009-05-20 23:04:56 +00:00  
				
					
						
							
							
								 
						
							
								ec78f1516d 
								
							 
						 
						
							
							
								
								Don't set the "location" information for inlined functions' variables.  
							
							... 
							
							
							
							llvm-svn: 72064 
							
						 
						
							2009-05-18 23:08:55 +00:00  
				
					
						
							
							
								 
						
							
								1992f86733 
								
							 
						 
						
							
							
								
								Small code cleanup.  
							
							... 
							
							
							
							llvm-svn: 72057 
							
						 
						
							2009-05-18 22:33:01 +00:00  
				
					
						
							
							
								 
						
							
								bc308569a3 
								
							 
						 
						
							
							
								
								RecordVariable is called each time a DECLARE node is encountered. For an inlined  
							
							... 
							
							
							
							function, this could be many, many times. We don't want to re-add variables to
that DIE for each time. We just want to add them once. Check to make sure that
we haven't added them already.
llvm-svn: 72047 
							
						 
						
							2009-05-18 22:02:36 +00:00  
				
					
						
							
							
								 
						
							
								2f921f82e4 
								
							 
						 
						
							
							
								
								Split out the DwarfDebug module from the DwarfWriter module.  
							
							... 
							
							
							
							Again, no intendtional functionality change.
llvm-svn: 71854 
							
						 
						
							2009-05-15 09:23:25 +00:00