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