[SanitizerCoverage] Make Inline8bit and TracePC counters dead stripping resistant.
authorMax Moroz <mmoroz@chromium.org>
Fri, 12 Oct 2018 13:59:31 +0000 (13:59 +0000)
committerMax Moroz <mmoroz@chromium.org>
Fri, 12 Oct 2018 13:59:31 +0000 (13:59 +0000)
commit4d010ca35bbb9a084f3726c3b463871bf61d8ece
treeaa0e6f68ce4c35eb5551f83bf386bd4eb9236f7d
parent4cb05713de704d43f6f813dd6d999677b5e84912
[SanitizerCoverage] Make Inline8bit and TracePC counters dead stripping resistant.

Summary:
Otherwise, at least on Mac, the linker eliminates unused symbols which
causes libFuzzer to error out due to a mismatch of the sizes of coverage tables.

Issue in Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=892167

Reviewers: morehouse, kcc, george.karpenkov

Reviewed By: morehouse

Subscribers: kubamracek, llvm-commits

Differential Revision: https://reviews.llvm.org/D53113

llvm-svn: 344345
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp