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
aligned_stack_var.ll
arguments.ll
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
coff_relative_names.ll
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
dbg-at-specficiation.ll
dbg-byval-parameter.ll
dbg-const-int.ll
dbg-const.ll
dbg-declare-arg.ll
dbg-declare.ll
dbg-file-name.ll
dbg-i128-const.ll
dbg-large-unsigned-const.ll
dbg-merge-loc-entry.ll
dbg-prolog-end.ll
dbg-subrange.ll
dbg-value-dag-combine.ll Enable MI Sched for x86. 2013-10-15 23:33:07 +00:00
dbg-value-inlined-parameter.ll
dbg-value-isel.ll Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
dbg-value-location.ll
dbg-value-range.ll
dbg-value-terminator.ll
debug_frame.ll
debug-info-block-captured-self.ll
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
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
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
earlydup-crash.ll
eh_symbol.ll
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
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
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
line-info.ll
linkage-name.ll
lit.local.cfg
low-pc-cu.ll
main-file-name.s
misched-dbg-value.ll
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
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
pointer-type-size.ll
pr9951.ll
pr11300.ll Debug Info: use createAndAddDIE for newly-created Subprogram DIEs. 2013-10-29 00:58:04 +00:00
pr12831.ll
pr13303.ll
prologue-stack.ll
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
rvalue-ref.ll
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
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
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
vector.ll
vla.ll