1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/tools
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
..
dsymutil DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
gold Pass -m to the linker in this test. 2015-06-23 18:04:54 +00:00
llvm-cov InstrProf: Fix display of large numbers in llvm-cov 2015-05-13 22:41:48 +00:00
llvm-cxxdump Add a test for the previous commit. 2015-06-23 03:42:44 +00:00
llvm-lit [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
llvm-mc Update test suite to make "ninja check" succeed without native backend builtin 2015-08-04 06:32:54 +00:00
llvm-objdump COFF: Assign the correct symbol type to internal functions. 2015-08-06 05:26:35 +00:00
llvm-pdbdump [llvm-pdbdump] Support dynamic load address and external symbols. 2015-05-01 20:24:26 +00:00
llvm-profdata InstrProf: Give coverage its own errors instead of piggy backing on instrprof 2015-05-06 23:19:35 +00:00
llvm-readobj llvm-readobj: Dump more info for COFF import libraries. 2015-08-28 10:27:50 +00:00
llvm-split TransformUtils: Introduce module splitter. 2015-08-21 02:48:20 +00:00
llvm-symbolizer [llvm-symbolizer] Remove underscores and other C mangling on Windows 2015-08-10 21:47:11 +00:00
lto Update test suite to make "ninja check" succeed without native backend builtin 2015-08-04 06:32:54 +00:00