commit | 9fcdc897848f1a147adf368d4578f3c0341cbd4f | [log] [tgz] |
---|---|---|
author | Matt Morehouse <mascasa@google.com> | Fri Jun 15 20:12:58 2018 +0000 |
committer | Matt Morehouse <mascasa@google.com> | Fri Jun 15 20:12:58 2018 +0000 |
tree | 7e8011dd5bbbc9deba1ce3a97983dc4ed87eb03c | |
parent | f1d55911bf10189c7f619970ce3b3e2274e61cb3 [diff] |
[SanitizerCoverage] Add associated metadata to pc-tables. Summary: Using associated metadata rather than llvm.used allows linkers to perform dead stripping with -fsanitize-coverage=pc-table. Unfortunately in my local tests, LLD was the only linker that made use of this metadata. Partially addresses https://bugs.llvm.org/show_bug.cgi?id=34636 and fixes https://github.com/google/sanitizers/issues/971. Reviewers: eugenis Reviewed By: eugenis Subscribers: Dor1s, hiraditya, llvm-commits, kcc Differential Revision: https://reviews.llvm.org/D48203 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334858 91177308-0d34-0410-b5e6-96231b3b80d8