diff options
author | Matt Morehouse <mascasa@google.com> | 2018-06-15 20:12:58 +0000 |
---|---|---|
committer | Matt Morehouse <mascasa@google.com> | 2018-06-15 20:12:58 +0000 |
commit | 0ea9a90b3d6b2920e96dd8bbc971c236fe048139 (patch) | |
tree | cb23edde20cd7f8e201132f79a509276c6fba76a /clang/lib/Lex/ModuleMap.cpp | |
parent | 82b2e7431ded460124a31efe5e541db20c61c497 (diff) | |
download | llvm-0ea9a90b3d6b2920e96dd8bbc971c236fe048139.zip llvm-0ea9a90b3d6b2920e96dd8bbc971c236fe048139.tar.gz llvm-0ea9a90b3d6b2920e96dd8bbc971c236fe048139.tar.bz2 |
[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
llvm-svn: 334858
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions