llvm-mirror/test/DebugInfo/Inputs
Duncan P. N. Exon Smith 0c1aee0b16 DI: Require subprogram definitions to be distinct
As a follow-up to r246098, require `DISubprogram` definitions
(`isDefinition: true`) to be 'distinct'.  Specifically, add an assembler
check, a verifier check, and bitcode upgrading logic to combat testcase
bitrot after the `DIBuilder` change.

While working on the testcases, I realized that
test/Linker/subprogram-linkonce-weak-odr.ll isn't relevant anymore.  Its
purpose was to check for a corner case in PR22792 where two subprogram
definitions match exactly and share the same metadata node.  The new
verifier check, requiring that subprogram definitions are 'distinct',
precludes that possibility.

I updated almost all the IR with the following script:

    git grep -l -E -e '= !DISubprogram\(.* isDefinition: true' |
    grep -v test/Bitcode |
    xargs sed -i '' -e 's/= \(!DISubprogram(.*, isDefinition: true\)/= distinct \1/'

Likely some variant of would work for out-of-tree testcases.

llvm-svn: 246327
2015-08-28 20:26:49 +00:00
..
arange-overlap.cc [DWARF parser] Fix broken address ranges construction. 2014-06-12 23:58:49 +00:00
arange-overlap.elf-x86_64 [DWARF parser] Fix broken address ranges construction. 2014-06-12 23:58:49 +00:00
arm-relocs.elf-arm Add support for the R_ARM_ABS32 relocation. 2014-04-03 02:27:00 +00:00
cross-cu-inlining.c Allow DWARFDebugInfoEntryMinimal::getSubroutineName to resolve cross-unit references. 2014-09-22 12:35:53 +00:00
cross-cu-inlining.x86_64-macho.o Allow DWARFDebugInfoEntryMinimal::getSubroutineName to resolve cross-unit references. 2014-09-22 12:35:53 +00:00
dwarfdump-inl-test.cc Add DebugInfo testcase for high_pc encoded as constant, fixed in r193555. 2013-10-30 20:27:17 +00:00
dwarfdump-inl-test.elf-x86-64 Omit DW_TAG_subprograms for subprograms without inlined subroutines when producing -gmlt data 2014-09-19 17:03:16 +00:00
dwarfdump-inl-test.h Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-inl-test.high_pc.elf-x86-64 Add DebugInfo testcase for high_pc encoded as constant, fixed in r193555. 2013-10-30 20:27:17 +00:00
dwarfdump-line-dwo.cc llvm-dwarfdump: Support for debug_line.dwo section for file names for type units under fission. 2014-02-24 23:58:54 +00:00
dwarfdump-line-dwo.elf-x86-64 llvm-dwarfdump: Support for debug_line.dwo section for file names for type units under fission. 2014-02-24 23:58:54 +00:00
dwarfdump-macho-relocs.macho.x86_64.o [dwarfdump] Do not apply relocations in mach-o files if there is no LoadedObjectInfo. 2015-08-23 04:44:21 +00:00
dwarfdump-objc.m [dwarfdump] Prettyprint DW_AT_APPLE_property_attribute bitfield values. 2014-10-10 15:51:10 +00:00
dwarfdump-objc.x86_64.o [dwarfdump] Prettyprint DW_AT_APPLE_property_attribute bitfield values. 2014-10-10 15:51:10 +00:00
dwarfdump-pubnames.cc Add testcase for llvm-dwarfdump to test parsing of the pubnames data. 2013-02-14 16:10:58 +00:00
dwarfdump-pubnames.elf-x86-64 Add testcase for llvm-dwarfdump to test parsing of the pubnames data. 2013-02-14 16:10:58 +00:00
dwarfdump-test2-helper.cc Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test2-main.cc Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test2.elf-x86-64 Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test3-decl2.h Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test3-decl.h Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test3.cc Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test3.elf-x86-64 space llvm-symbolizer: correctly parse filenames given in quotes 2013-04-05 09:22:24 +00:00
dwarfdump-test4-decl.h Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test4-part1.cc Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test4-part2.cc Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test4.elf-x86-64 Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test-32bit.elf.c Add a test for checking the current .debug_frame dumping capability. 2013-02-06 20:55:06 +00:00
dwarfdump-test-32bit.elf.o Add a test for checking the current .debug_frame dumping capability. 2013-02-06 20:55:06 +00:00
dwarfdump-test-loc-list-32bit.elf.cpp llvm-dwarfdump: Add support for dumping the .debug_loc section 2013-06-19 21:37:13 +00:00
dwarfdump-test-loc-list-32bit.elf.o llvm-dwarfdump: Add support for dumping the .debug_loc section 2013-06-19 21:37:13 +00:00
dwarfdump-test-zlib.cc Use zlib to uncompress debug sections in DWARF parser. 2013-04-23 10:17:34 +00:00
dwarfdump-test-zlib.elf-x86-64 Use zlib to uncompress debug sections in DWARF parser. 2013-04-23 10:17:34 +00:00
dwarfdump-test.cc [dwarfdump] Ignore scattered relocations for mach-o. 2015-07-31 20:22:50 +00:00
dwarfdump-test.elf-x86-64 Update tests for DWARF parser: store sources next to pre-built object files and provide build instructions 2013-02-08 14:34:33 +00:00
dwarfdump-test.elf-x86-64.debuglink llvm-symbolizer: add support for .gnu_debuglink section 2013-08-14 17:09:30 +00:00
dwarfdump-test.macho-i386.o [dwarfdump] Ignore scattered relocations for mach-o. 2015-07-31 20:22:50 +00:00
dwarfdump-type-units.cc llvm-dwarfdump/libDebugInfo support for type units 2013-09-23 22:44:47 +00:00
dwarfdump-type-units.elf-x86-64 llvm-dwarfdump/libDebugInfo support for type units 2013-09-23 22:44:47 +00:00
dwarfdump.elf-mips64-64-bit-dwarf DebugInfo: .debug_line DWARF64 support 2015-05-28 15:38:17 +00:00
fat-test.o Don't use test inputs from other directories. 2015-08-03 11:59:45 +00:00
fission-ranges.cc [llvm-symbolizer] Fix parsing DW_AT_ranges in Fission skeleton compile unit DIEs. 2014-06-12 18:52:35 +00:00
fission-ranges.elf-x86_64 [llvm-symbolizer] Fix parsing DW_AT_ranges in Fission skeleton compile unit DIEs. 2014-06-12 18:52:35 +00:00
gmlt.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
invalid.elf Object, ELF: Use error code instead of calling report_fatal_error() 2015-05-28 20:25:42 +00:00
invalid.elf.2 [Object, ELF] Don't call llvm_unreachable() from createELFObjectFile. 2015-06-04 22:58:25 +00:00
invalid.elf.3 [Object, ELF] Don't assert on invalid magic in createELFObjectFile. 2015-06-04 23:14:43 +00:00
line.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
llvm-symbolizer-dwo-test [llvm-symbolizer] Print file/line for a PC even if there is no DIE describing it. 2014-04-18 22:22:44 +00:00
llvm-symbolizer-dwo-test.cc [llvm-symbolizer] Print file/line for a PC even if there is no DIE describing it. 2014-04-18 22:22:44 +00:00
llvm-symbolizer-test.c llvm-symbolizer: make mangled name heuristic apply to all symbols 2014-01-16 17:25:12 +00:00
llvm-symbolizer-test.elf-x86-64 llvm-symbolizer: make mangled name heuristic apply to all symbols 2014-01-16 17:25:12 +00:00
macho-universal llvm-symbolizer: add support for Mach-O universal binaries 2013-06-28 08:15:40 +00:00
macho-universal.cc llvm-symbolizer: add support for Mach-O universal binaries 2013-06-28 08:15:40 +00:00
shared-object-stripped.elf-i386 llvm-symbolizer: use dynamic symbol table if the regular one is stripped. 2014-02-26 13:10:01 +00:00
split-dwarf-test [DWARF parser] Fix nasty memory corruption in .dwo files handling. 2014-09-05 19:29:45 +00:00
split-dwarf-test.cc [DWARF parser] Fix nasty memory corruption in .dwo files handling. 2014-09-05 19:29:45 +00:00
split-dwarf-test.dwo [DWARF parser] Fix nasty memory corruption in .dwo files handling. 2014-09-05 19:29:45 +00:00
test-inline.o
test-multiple-macho.o Add RelocVisitor support for MachO 2015-05-30 19:44:53 +00:00
test-parameters.o Add DIContext::getLineInfoForAddressRange() function and test. This function allows a caller to obtain a table of line information for a function using the function's address and size. 2013-01-26 00:28:05 +00:00
test-simple-macho.o Add RelocVisitor support for MachO 2015-05-30 19:44:53 +00:00