1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/Linker/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
..
apple-version
2003-01-30-LinkerRename.ll
2003-05-31-LinkerRename.ll
alias.ll
alignment.ll
basiclink.a.ll
basiclink.b.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
comdat2.ll
comdat3.ll
comdat4.ll
comdat5.ll
comdat8.ll
comdat.ll
ConstantGlobals.ll
constructor-comdat.ll
ctors.ll
datalayout-a.ll
datalayout-b.ll
distinct.ll
drop-debug.bc Work around pr23045 and make it easier to reproduce. 2015-03-27 15:55:06 +00:00
ident.a.ll
ident.b.ll
linkage2.ll
linkage.a.ll
linkage.b.ll
mdlocation.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
metadata-function.ll Linker: Copy over function metadata attachments 2015-04-24 22:07:31 +00:00
module-flags-dont-change-others.ll
module-flags-pic-1-b.ll
module-flags-pic-2-b.ll
old_global_ctors.3.4.bc
opaque.ll
override-different-linkage.ll Linker: Add flag to override linkage rules 2015-04-22 04:11:00 +00:00
override-with-internal-linkage-2.ll Linker: Add flag to override linkage rules 2015-04-22 04:11:00 +00:00
override-with-internal-linkage.ll Linker: Add flag to override linkage rules 2015-04-22 04:11:00 +00:00
override.ll Linker: Add flag to override linkage rules 2015-04-22 04:11:00 +00:00
pr21374.ll
pr22807-1.ll
pr22807-2.ll
PR8300.a.ll
PR8300.b.ll
PR11464.a.ll
PR11464.b.ll
redefinition.ll
replaced-function-matches-first-subprogram.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
subprogram-linkonce-weak.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
targettriple-a.ll
targettriple-b.ll
targettriple-c.ll
testlink.ll
type-unique-alias.ll
type-unique-dst-types2.ll
type-unique-dst-types3.ll
type-unique-inheritance-a.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
type-unique-inheritance-b.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
type-unique-name.ll
type-unique-opaque.ll
type-unique-simple2-a.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
type-unique-simple2-b.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
type-unique-unrelated2.ll
type-unique-unrelated3.ll
unique-fwd-decl-b.ll
unique-fwd-decl-order.ll
visibility.ll