llvm-project/llvm/test/DebugInfo/Inputs
Duncan P. N. Exon Smith 814b8e91c7 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
arange-overlap.elf-x86_64
arm-relocs.elf-arm
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
dwarfdump-inl-test.elf-x86-64
dwarfdump-inl-test.h
dwarfdump-inl-test.high_pc.elf-x86-64
dwarfdump-line-dwo.cc
dwarfdump-line-dwo.elf-x86-64
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
dwarfdump-pubnames.elf-x86-64
dwarfdump-test-32bit.elf.c
dwarfdump-test-32bit.elf.o
dwarfdump-test-loc-list-32bit.elf.cpp
dwarfdump-test-loc-list-32bit.elf.o
dwarfdump-test-zlib.cc
dwarfdump-test-zlib.elf-x86-64
dwarfdump-test.cc [dwarfdump] Ignore scattered relocations for mach-o. 2015-07-31 20:22:50 +00:00
dwarfdump-test.elf-x86-64
dwarfdump-test.elf-x86-64.debuglink
dwarfdump-test.macho-i386.o [dwarfdump] Ignore scattered relocations for mach-o. 2015-07-31 20:22:50 +00:00
dwarfdump-test2-helper.cc
dwarfdump-test2-main.cc
dwarfdump-test2.elf-x86-64
dwarfdump-test3-decl.h
dwarfdump-test3-decl2.h
dwarfdump-test3.cc
dwarfdump-test3.elf-x86-64 space
dwarfdump-test4-decl.h
dwarfdump-test4-part1.cc
dwarfdump-test4-part2.cc
dwarfdump-test4.elf-x86-64
dwarfdump-type-units.cc
dwarfdump-type-units.elf-x86-64
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
fission-ranges.elf-x86_64
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-dwo-test.cc
llvm-symbolizer-test.c
llvm-symbolizer-test.elf-x86-64
macho-universal
macho-universal.cc
shared-object-stripped.elf-i386
split-dwarf-test
split-dwarf-test.cc
split-dwarf-test.dwo
test-inline.o
test-multiple-macho.o Add RelocVisitor support for MachO 2015-05-30 19:44:53 +00:00
test-parameters.o
test-simple-macho.o Add RelocVisitor support for MachO 2015-05-30 19:44:53 +00:00