llvm-6502/test/DebugInfo/X86
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
..
2010-04-13-PubType.ll
2010-08-10-DbgConstant.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
2011-09-26-GlobalVarContext.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
2011-12-16-BadStructRef.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
aligned_stack_var.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
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
block-capture.ll In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
byvalstruct.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
coff_relative_names.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
concrete_out_of_line.ll DebugInfo: Emit member variable locations as data instead of expressions in blocks 2013-11-01 00:25:45 +00:00
data_member_location.ll DebugInfo: Improve readability of test case added in r193878 2013-11-01 20:59:53 +00:00
dbg_value_direct.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
dbg-at-specficiation.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
dbg-byval-parameter.ll
dbg-const-int.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
dbg-const.ll
dbg-declare-arg.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
dbg-declare.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
dbg-file-name.ll
dbg-i128-const.ll
dbg-large-unsigned-const.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
dbg-merge-loc-entry.ll
dbg-prolog-end.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
dbg-subrange.ll Initialize BSSSection explicitly in InitMachOMCObjectFileInfo() to appease msvc. 2013-09-21 02:34:45 +00:00
dbg-value-dag-combine.ll Enable MI Sched for x86. 2013-10-15 23:33:07 +00:00
dbg-value-inlined-parameter.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
dbg-value-isel.ll Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
dbg-value-location.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
dbg-value-range.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
dbg-value-terminator.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
debug_frame.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
debug-info-block-captured-self.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
debug-info-blocks.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
debug-info-static-member.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
DW_AT_byte_size.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
DW_AT_location-reference.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
DW_AT_object_pointer.ll Debug Info: use createAndAddDIE for newly-created Subprogram DIEs. 2013-10-29 00:58:04 +00:00
DW_AT_specification.ll Debug Info: use createAndAddDIE for newly-created Subprogram DIEs. 2013-10-29 00:58:04 +00:00
DW_AT_stmt_list_sec_offset.ll In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
DW_TAG_friend.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
dwarf-aranges-no-dwarf-labels.ll Remove wild .debug_aranges entries generated from unimportant labels 2013-10-03 08:54:43 +00:00
dwarf-aranges.ll Fixed a bug with section names containing special characters. 2013-10-03 22:07:08 +00:00
dwarf-public-names.ll Fix a test case broken by r193872 2013-11-01 18:18:16 +00:00
dwarf-pubnames-split.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
earlydup-crash.ll
eh_symbol.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
elf-names.ll Debug Info: use createAndAddDIE for newly-created Subprogram DIEs. 2013-10-29 00:58:04 +00:00
empty-and-one-elem-array.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
empty-array.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
ending-run.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
enum-class.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
enum-fwd-decl.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
fission-cu.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
fission-hash.ll DebugInfo: Hash DW_FORM_GNU_str_index as a string. 2013-10-21 16:37:22 +00:00
fission-ranges.ll Add the DW_AT_GNU_ranges_base attribute if we've emitted any ranges 2013-10-01 00:43:36 +00:00
generate-odr-hash.ll DebugInfo: Partial implementation of DWARF type units. 2013-11-19 23:08:21 +00:00
gnu-public-names-empty.ll Make sure we emit a section for pubnames even if that section is 2013-10-03 17:41:20 +00:00
gnu-public-names.ll In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
instcombine-instrinsics.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
line-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
linkage-name.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
lit.local.cfg
low-pc-cu.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
main-file-name.s
misched-dbg-value.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
multiple-aranges.ll Fixed a bug with section names containing special characters. 2013-10-03 22:07:08 +00:00
multiple-at-const-val.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
nondefault-subrange-array.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
objc-fwd-decl.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
op_deref.ll In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
parameters.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
pointer-type-size.ll
pr9951.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
pr11300.ll Debug Info: use createAndAddDIE for newly-created Subprogram DIEs. 2013-10-29 00:58:04 +00:00
pr12831.ll Debug Info Testing: update context from empty string to null. 2013-09-08 03:11:54 +00:00
pr13303.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
prologue-stack.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
ref_addr_relocation.ll Debug Info: remove duplication of DIEs when a DIE can be shared across CUs. 2013-10-31 17:54:35 +00:00
reference-argument.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
rvalue-ref.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
stmt-list-multiple-compile-units.ll In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
stmt-list.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
stringpool.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
struct-loc.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 05:49:41 +00:00
subrange-type.ll Debug Info: instead of calling addToContextOwner which constructs the context 2013-10-29 22:49:29 +00:00
subreg.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.ll Debug Info: use createAndAddDIE for newly-created Subprogram DIEs. 2013-10-29 00:58:04 +00:00
tls-fission.ll
tls.ll
union-template.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
vector.ll Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields. 2013-09-06 21:03:58 +00:00
vla.ll Debug info: Get rid of the VLA indirection hack in FastISel. 2013-09-18 22:08:59 +00:00