[Instrumentation] Set hidden visibility for the bias variable
authorPetr Hosek <phosek@google.com>
Tue, 28 Jan 2020 07:28:03 +0000 (23:28 -0800)
committerPetr Hosek <phosek@google.com>
Tue, 28 Jan 2020 20:07:03 +0000 (12:07 -0800)
commit127d3abf25b309f56575118530f8f6df08d9e843
treea7850efa773c39fc90076f469a41ccdec47f5ed2
parentb8c39e94626597912783d2077244158a4d5f27b8
[Instrumentation] Set hidden visibility for the bias variable

We have to avoid using a GOT relocation to access the bias variable,
setting the hidden visibility achieves that.

Differential Revision: https://reviews.llvm.org/D73529
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll