Duncan P. N. Exon Smith
a5ae7c1c9f
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246327 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-28 20:26:49 +00:00
..
2014-06-22 00:33:44 +00:00
2014-03-24 05:00:34 +00:00
2014-03-24 05:00:34 +00:00
2015-04-17 08:46:11 +00:00
2015-06-04 15:33:30 +00:00
2013-04-12 04:06:46 +00:00
2013-04-12 04:06:46 +00:00
2013-04-12 04:06:46 +00:00
2013-04-12 04:06:46 +00:00
2015-04-29 13:55:07 +00:00
2014-03-29 06:26:49 +00:00
2014-03-29 06:26:49 +00:00
2014-01-21 20:39:11 +00:00
2013-10-18 20:46:28 +00:00
2011-01-24 19:40:38 +00:00
2015-06-23 11:31:32 +00:00
2015-06-04 15:33:30 +00:00
2015-04-28 01:37:11 +00:00
2011-02-24 21:59:22 +00:00
2013-07-01 09:02:33 +00:00
2013-04-12 04:06:46 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-27 22:04:24 +00:00
2015-04-29 13:55:07 +00:00
2012-09-07 14:51:35 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-05-12 15:25:08 +00:00
2015-04-27 22:04:24 +00:00
2015-04-29 13:55:07 +00:00
2015-08-28 20:26:49 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-04-29 13:55:07 +00:00
2015-06-04 15:33:30 +00:00
2015-04-30 14:21:49 +00:00
2015-06-04 15:33:30 +00:00
2015-05-22 21:37:13 +00:00
2015-01-19 17:30:24 +00:00
2015-01-19 17:30:24 +00:00
2015-06-06 20:12:40 +00:00
2015-06-06 20:12:40 +00:00
2015-04-15 15:59:37 +00:00
2014-04-08 15:28:50 +00:00
2015-06-23 11:31:32 +00:00
2013-06-19 21:27:27 +00:00
2015-04-15 13:07:47 +00:00
2015-04-29 13:55:07 +00:00
2013-04-12 04:06:46 +00:00
2015-06-25 20:10:45 +00:00
2014-02-17 20:48:32 +00:00
2015-04-29 13:55:07 +00:00
2015-06-04 15:33:30 +00:00
2015-03-13 18:20:45 +00:00
2015-04-29 13:55:07 +00:00
2012-08-12 08:21:27 +00:00
2015-04-29 13:55:07 +00:00
2015-05-22 21:37:13 +00:00
2015-03-11 04:20:31 +00:00
2013-04-12 04:06:46 +00:00
2015-07-01 10:28:09 +00:00
2014-06-08 00:34:34 +00:00
2015-05-28 15:20:00 +00:00
2013-04-12 04:06:46 +00:00
2015-04-15 15:59:37 +00:00
2015-04-29 13:55:07 +00:00
2013-04-12 04:06:46 +00:00
2014-06-09 22:42:55 +00:00
2015-04-15 15:59:37 +00:00
2015-06-04 15:33:30 +00:00
2015-06-24 14:48:54 +00:00
2015-06-04 15:33:30 +00:00
2015-06-23 11:31:32 +00:00
2015-04-29 13:55:07 +00:00
2013-03-01 20:54:00 +00:00
2014-07-01 14:34:30 +00:00
2014-03-30 14:04:00 +00:00
2015-06-04 15:33:30 +00:00
2015-04-29 13:55:07 +00:00
2014-04-28 20:53:11 +00:00
2013-04-12 04:06:46 +00:00
2014-04-30 16:25:02 +00:00
2013-04-12 04:06:46 +00:00
2015-06-08 20:08:55 +00:00
2014-04-30 16:25:02 +00:00
2015-04-29 13:55:07 +00:00
2015-04-03 01:46:11 +00:00
2012-12-10 20:36:01 +00:00
2015-07-05 10:25:41 +00:00
2015-07-01 10:54:42 +00:00
2015-07-05 10:25:41 +00:00
2015-07-05 10:25:41 +00:00
2015-05-22 21:37:13 +00:00
2015-06-04 15:33:30 +00:00
2015-06-23 11:31:32 +00:00
2015-04-29 13:55:07 +00:00
2015-06-06 02:29:56 +00:00
2015-04-29 13:55:07 +00:00
2011-03-04 20:03:14 +00:00
2015-06-03 05:14:22 +00:00
2014-10-17 01:48:58 +00:00
2015-06-04 15:33:30 +00:00
2015-04-06 16:34:41 +00:00
2015-04-06 16:34:41 +00:00
2015-04-06 16:34:41 +00:00
2015-04-06 16:34:41 +00:00
2015-04-29 20:25:24 +00:00
2015-05-22 21:37:13 +00:00
2014-04-30 16:25:02 +00:00
2015-03-04 22:03:21 +00:00
2015-08-14 15:16:37 +00:00
2015-05-28 21:59:34 +00:00
2013-04-17 21:18:16 +00:00
2014-04-28 12:40:50 +00:00
2013-10-18 20:46:28 +00:00
2015-05-22 21:37:13 +00:00
2015-06-22 23:36:03 +00:00
2015-06-04 15:33:30 +00:00
2014-04-30 16:25:02 +00:00
2015-04-15 15:59:37 +00:00
2015-04-29 13:55:07 +00:00
2015-05-22 21:37:13 +00:00
2015-08-14 15:16:37 +00:00
2015-06-25 20:10:45 +00:00
2015-06-25 20:10:45 +00:00
2013-04-12 04:06:46 +00:00
2015-04-17 21:15:17 +00:00
2013-05-30 03:05:14 +00:00
2014-03-24 05:00:34 +00:00
2013-04-12 04:06:46 +00:00
2015-05-28 15:20:00 +00:00
2015-06-04 15:33:30 +00:00
2013-05-30 03:05:14 +00:00
2013-04-12 04:06:46 +00:00