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