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