llvm-6502/test/DebugInfo
Eric Christopher 2d5d104c5b In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a
section use the form DW_FORM_data4 whilst in Dwarf 4 and later they
use the form DW_FORM_sec_offset.

This patch updates the places where such attributes are generated to
use the appropriate form depending on the Dwarf version. The DIE entries
affected have the following tags:
DW_AT_stmt_list, DW_AT_ranges, DW_AT_location, DW_AT_GNU_pubnames,
DW_AT_GNU_pubtypes, DW_AT_GNU_addr_base, DW_AT_GNU_ranges_base

It also adds a hidden command line option "--dwarf-version=<uint>"
to llc which allows the version of Dwarf to be generated to override
what is specified in the metadata; this makes it possible to update
existing tests to check the debugging information generated for both
Dwarf 4 (the default) and Dwarf 3 using the same metadata.

Patch (slightly modified) by Keith Walker!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195391 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-21 23:46:41 +00:00
..
AArch64 Move emission of the debug string table to early in the debug 2013-09-20 23:22:52 +00:00
ARM Debug info: Let LowerDbgDeclare perfom the dbg.declare -> dbg.value 2013-11-18 23:04:38 +00:00
Inputs Add DebugInfo testcase for high_pc encoded as constant, fixed in r193555. 2013-10-30 20:27:17 +00:00
PowerPC [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
SystemZ Move emission of the debug string table to early in the debug 2013-09-20 23:22:52 +00:00
X86 In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll Debug Info Verifier: verify SPs in llvm.dbg.sp. 2013-07-27 01:26:08 +00:00
2009-11-05-DeadGlobalVariable.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
2009-11-06-NamelessGlobalVariable.ll Debug Info Verifier: verify SPs in llvm.dbg.sp. 2013-07-27 01:26:08 +00:00
2009-11-10-CurrentFn.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
2010-01-05-DbgScope.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-01-19-DbgScope.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-03-12-llc-crash.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-03-19-DbgDeclare.ll
2010-03-24-MemberFn.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-03-30-InvalidDbgInfoCrash.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-04-06-NestedFnDbgInfo.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-04-19-FramePtr.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-05-03-DisableFramePtr.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-05-03-OriginDIE.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-05-10-MultipleCU.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-06-29-InlinedFnLocalVar.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-07-19-Crash.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-10-01-crash.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
array.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
bug_null_debuginfo.ll Debug Info Verifier: enable verification of DICompileUnit. 2013-07-26 20:04:30 +00:00
debuginfofinder-multiple-cu.ll Changing DebugInfoFinder to iterate over all the compile units. 2013-10-17 10:27:12 +00:00
debuglineinfo.test
dwarf-public-names.ll DebugInfo: Make pubnames header printing similar to unit header printing 2013-11-01 17:53:30 +00:00
dwarfdump-debug-frame-simple.test
dwarfdump-debug-loc-simple.test Spell correct (s/begining/beginning/) 2013-06-19 21:42:05 +00:00
dwarfdump-dump-flags.test
dwarfdump-inlining.test
dwarfdump-pubnames.test DebugInfo: Make pubnames header printing similar to unit header printing 2013-11-01 17:53:30 +00:00
dwarfdump-test.test
dwarfdump-type-units.test llvm-dwarfdump: support for emitting only the debug_types section using -debug-dump 2013-11-19 00:29:42 +00:00
dwarfdump-zlib.test
enum.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
global.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
inheritance.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
inline-debug-info-multiret.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
inline-debug-info.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
inlined-arguments.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
inlined-vars.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
llvm-symbolizer.test Add DebugInfo testcase for high_pc encoded as constant, fixed in r193555. 2013-10-30 20:27:17 +00:00
member-order.ll DebugInfo: Fix ordering of members after r191928 2013-10-04 01:39:59 +00:00
member-pointers.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
namespace.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
template-recursive-void.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
tu-composite.ll Debug Info Testing Case: check for the name of a structure. 2013-10-11 18:50:00 +00:00
tu-member-pointer.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
two-cus-from-same-file.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
version.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00