diff options
author | Xinliang David Li <davidxl@google.com> | 2015-12-15 22:38:18 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-12-15 22:38:18 +0000 |
commit | 2dea2b0d44457345e1fcab69ed99c6c97889e055 (patch) | |
tree | 937635f51dc85311a602b935673acb5132ec1d86 /lib/profile/InstrProfilingRuntime.cc | |
parent | 1597fbe985e7e5ea47dabde03004bf32fbb34014 (diff) |
[PGO] Improve prof library portability
Patch by: Johan Engelen
Introduce LLVM_LIBRARY_WEAK macro. Define LLVM_LIBRARY_WEAK
and LLVM_LIBRARY_VISIBIITY for MSVC
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingRuntime.cc')
-rw-r--r-- | lib/profile/InstrProfilingRuntime.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/profile/InstrProfilingRuntime.cc b/lib/profile/InstrProfilingRuntime.cc index 081ecb29e..77fca472a 100644 --- a/lib/profile/InstrProfilingRuntime.cc +++ b/lib/profile/InstrProfilingRuntime.cc @@ -11,8 +11,7 @@ extern "C" { #include "InstrProfiling.h" -__attribute__((visibility("hidden"))) int __llvm_profile_runtime; - +LLVM_LIBRARY_VISIBILITY int __llvm_profile_runtime; } namespace { |