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
..
2015-08-28 20:26:49 +00:00
2015-03-13 18:20:45 +00:00
2014-10-23 18:44:07 +00:00
2013-04-09 16:51:13 +00:00
2013-04-09 16:51:13 +00:00
2014-10-23 18:52:46 +00:00
2013-04-09 16:51:13 +00:00
2013-04-09 16:51:13 +00:00
2015-03-13 18:20:45 +00:00
2015-02-27 21:17:42 +00:00
2013-04-09 16:51:13 +00:00
2013-04-09 16:51:13 +00:00
2013-04-09 16:51:13 +00:00
2013-04-09 16:51:13 +00:00
2015-02-27 21:17:42 +00:00
2013-04-09 16:51:13 +00:00
2013-04-09 16:51:13 +00:00
2013-04-09 16:51:13 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2014-06-03 02:41:57 +00:00
2014-12-05 00:02:42 +00:00
2013-04-09 16:51:13 +00:00
2015-03-13 18:20:45 +00:00
2015-02-13 00:40:41 +00:00
2015-03-31 03:07:23 +00:00
2015-01-06 22:55:16 +00:00
2015-01-06 22:55:16 +00:00
2015-01-06 22:55:16 +00:00
2015-03-13 18:20:45 +00:00
2015-01-06 22:55:16 +00:00
2015-01-06 22:55:16 +00:00
2015-01-06 22:55:16 +00:00
2015-06-22 21:46:51 +00:00
2015-01-06 22:55:16 +00:00
2014-10-31 05:04:16 +00:00
2015-01-06 22:55:16 +00:00
2014-09-05 21:27:52 +00:00
2015-03-04 18:43:29 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-03 17:26:41 +00:00
2015-08-03 17:26:41 +00:00
2015-02-04 19:44:34 +00:00
2015-01-08 22:42:30 +00:00
2014-02-13 05:11:35 +00:00
2014-02-13 05:11:35 +00:00
2015-03-27 15:55:06 +00:00
2014-01-24 19:20:15 +00:00
2014-01-24 19:20:15 +00:00
2014-08-12 16:46:37 +00:00
2014-11-05 21:33:34 +00:00
2015-02-27 21:17:42 +00:00
2014-09-09 17:48:18 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-08 18:45:16 +00:00
2015-08-28 20:26:49 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-04-24 22:07:31 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-03-25 23:22:10 +00:00
2014-12-15 19:07:53 +00:00
2015-03-25 23:22:10 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-01-07 21:32:27 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-02-27 19:29:02 +00:00
2015-04-22 04:11:00 +00:00
2015-05-12 16:47:30 +00:00
2015-04-24 16:56:24 +00:00
2015-04-22 04:11:00 +00:00
2015-02-27 19:29:02 +00:00
2015-03-13 18:20:45 +00:00
2014-12-03 07:18:23 +00:00
2014-12-08 18:45:16 +00:00
2015-03-06 00:50:21 +00:00
2014-12-08 13:44:38 +00:00
2014-10-31 16:52:30 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-03-02 21:33:18 +00:00
2015-05-12 16:47:30 +00:00
2013-08-29 03:02:30 +00:00
2014-11-25 04:43:59 +00:00
2014-12-01 04:15:59 +00:00
2013-09-09 23:07:58 +00:00
2014-11-25 15:33:40 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2014-11-28 16:41:24 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-08-04 06:32:54 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2015-02-27 19:29:02 +00:00
2015-08-28 20:26:49 +00:00
2015-08-28 20:26:49 +00:00
2014-11-25 03:47:57 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-08-04 06:42:31 +00:00
2014-06-06 01:20:28 +00:00
2014-09-09 15:40:12 +00:00
2013-09-04 15:33:34 +00:00
2013-09-04 15:33:34 +00:00
2015-01-06 22:55:16 +00:00
2014-11-24 20:35:59 +00:00